Formatters.ts fixes
parent
277bb4e4ec
commit
60e457696a
|
@ -1,4 +1,4 @@
|
|||
import { GuildMember, User } from "discord.js";
|
||||
import { Guild, GuildMember, User } from "discord.js";
|
||||
import Partner, { PartnerCommissionType, PartnerRoleType } from "../database/Partner";
|
||||
import { FormatNameOptions } from "./MemberUtil";
|
||||
|
||||
|
@ -27,7 +27,10 @@ export default class Formatters {
|
|||
);
|
||||
// if the partner is designated as a KeyHolder, add a [k] to the end of the name
|
||||
// if the partner exists, set the iconURL to the organizational logo
|
||||
if (partner?.isKeyHolder) {
|
||||
if (
|
||||
partner?.isKeyHolder ||
|
||||
("roles" in target && target.roles.cache.has("1014978134573064293"))
|
||||
) {
|
||||
return {
|
||||
text: `${target.displayName} [k]`,
|
||||
iconURL: target.displayAvatarURL(),
|
||||
|
|
Loading…
Reference in New Issue