remove discriminator part on whois

merge-requests/28/head
Damian Freeman 2023-07-21 01:05:44 +00:00
parent 77213c0178
commit 6b4a3c3a55
1 changed files with 238 additions and 238 deletions

View File

@ -43,7 +43,7 @@ export default class Whois extends Command {
embed.setThumbnail(member.avatarURL); embed.setThumbnail(member.avatarURL);
const ackResolve = await this.client.db.mongo.Staff.findOne({ userID: member.id }).lean().exec(); const ackResolve = await this.client.db.mongo.Staff.findOne({ userID: member.id }).lean().exec();
const mpn = this.memberPostNominals(member); const mpn = this.memberPostNominals(member);
let title = `${member.user.username}#${member.user.discriminator}`; let title = `${member.user.username}`;
if (!ackResolve && mpn) { if (!ackResolve && mpn) {
title += `, ${mpn.join(', ')}`; title += `, ${mpn.join(', ')}`;
} }