forked from engineering/crv2
logging for formatName (remove)
parent
e6b8291b2a
commit
1940d49884
|
@ -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 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 the partner exists, set the iconURL to the organizational logo
|
||||||
if (partner?.roleType == PartnerRoleType.MANAGERIAL) {
|
if (partner?.roleType == PartnerRoleType.MANAGERIAL) {
|
||||||
|
console.log(`[MemberUtil] Formatting name for ${target.displayName}`)
|
||||||
return {
|
return {
|
||||||
text: `${target.displayName} [k]`,
|
text: `${target.displayName} [k]`,
|
||||||
iconURL: "https://static.libraryofcode.org/library_of_code_redeg.png"
|
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
|
} 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 {
|
return {
|
||||||
text: `${target.displayName} [c]`,
|
text: `${target.displayName} [c]`,
|
||||||
iconURL: "https://static.libraryofcode.org/library_of_code_redeg.png"
|
iconURL: "https://static.libraryofcode.org/library_of_code_redeg.png"
|
||||||
}
|
}
|
||||||
} else { // otherwise, just set the author to the member's display name
|
} 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 {
|
return {
|
||||||
text: target.displayName,
|
text: target.displayName,
|
||||||
iconURL: target.displayAvatarURL()
|
iconURL: target instanceof GuildMember ? target.user.displayAvatarURL() : target.displayAvatarURL()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue