From 1940d49884ad806c3c47555677694eb24ac920ef Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 5 Apr 2024 20:12:56 -0400 Subject: [PATCH] logging for formatName (remove) --- util/MemberUtil.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() } } }