Formatters.ts fixes

dev
Matthew 2025-02-11 20:01:46 -05:00
parent 277bb4e4ec
commit 60e457696a
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
1 changed files with 5 additions and 2 deletions

View File

@ -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 Partner, { PartnerCommissionType, PartnerRoleType } from "../database/Partner";
import { FormatNameOptions } from "./MemberUtil"; 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 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 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 { return {
text: `${target.displayName} [k]`, text: `${target.displayName} [k]`,
iconURL: target.displayAvatarURL(), iconURL: target.displayAvatarURL(),