diff --git a/util/MemberUtil.ts b/util/MemberUtil.ts index 43704b1..8300627 100644 --- a/util/MemberUtil.ts +++ b/util/MemberUtil.ts @@ -64,19 +64,22 @@ export default class MemberUtil { // if the role type is managerial, add a [k] to the end of the name // if the partner exists, set the iconURL to the organizational logo if (partner?.roleType == PartnerRoleType.MANAGERIAL) { + console.log(`[MemberUtil] Formatting name for ${target.displayName}`) return { text: `${target.displayName} [k]`, iconURL: "https://static.libraryofcode.org/library_of_code_redeg.png" } } else if (partner?.commissionType == PartnerCommissionType.CONTRACTUAL) { // if the commission type is contractual, add a [c] to the end of the name + console.log(`[MemberUtil] Formatting name for ${target.displayName}`) return { text: `${target.displayName} [c]`, iconURL: "https://static.libraryofcode.org/library_of_code_redeg.png" } } else { // otherwise, just set the author to the member's display name + console.log(`[MemberUtil] Formatting name for ${target.displayName} at url ${target instanceof GuildMember ? target.user.displayAvatarURL() : target.displayAvatarURL()}`); return { text: target.displayName, - iconURL: target.displayAvatarURL() + iconURL: target instanceof GuildMember ? target.user.displayAvatarURL() : target.displayAvatarURL() } } }