fixes to whois

pull/29/head
Matthew 2020-10-28 21:04:04 -04:00
parent 8c55efd7e3
commit a455cbbee8
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,8 @@ export default class Whois extends Command {
if (score.total < 200) totalScore = '---';
else if (score.total > 800) totalScore = '800';
else totalScore = `${score.total}`;
embed.addField('Community Score', totalScore, true);
} else embed.addField('Community Score', 'N/C', true);
embed.addField('CommScore', totalScore, true);
} else embed.addField('CommScore', 'N/C', true);
if (member.roles.length > 0) {
embed.addField(`Roles [${member.roles.length}]`, member.roles.map((r) => this.mainGuild.roles.get(r)).sort((a, b) => b.position - a.position).map((r) => `<@&${r.id}>`).join(', '));