diff --git a/util/Formatters.ts b/util/Formatters.ts index a0d4e9f..25c2b90 100644 --- a/util/Formatters.ts +++ b/util/Formatters.ts @@ -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(),