add member count & fix position stuff
parent
c8bc1b8f69
commit
1f75d0ff91
|
@ -40,8 +40,9 @@ export default class Roleinfo extends Command {
|
||||||
embed.setColor(role.color);
|
embed.setColor(role.color);
|
||||||
embed.addField('Name', role.name, true);
|
embed.addField('Name', role.name, true);
|
||||||
embed.addField('Color', role.color ? this.client.util.decimalToHex(role.color) : 'None', true);
|
embed.addField('Color', role.color ? this.client.util.decimalToHex(role.color) : 'None', true);
|
||||||
|
embed.addField('Members', String(this.client.guilds.get(this.client.config.guildID).members.filter((m) => m.roles.includes(role.id)).length), true);
|
||||||
embed.addField('Hoisted', role.hoist ? 'Yes' : 'No', true);
|
embed.addField('Hoisted', role.hoist ? 'Yes' : 'No', true);
|
||||||
embed.addField('Position', role.position ? 'Yes' : 'No', true);
|
embed.addField('Position', String(role.position), true);
|
||||||
embed.addField('Creation Date', new Date(role.createdAt).toLocaleString(), true);
|
embed.addField('Creation Date', new Date(role.createdAt).toLocaleString(), true);
|
||||||
embed.addField('Mentionable', role.mentionable ? 'Yes' : 'No', true);
|
embed.addField('Mentionable', role.mentionable ? 'Yes' : 'No', true);
|
||||||
embed.setFooter(this.client.user.username, this.client.user.avatarURL);
|
embed.setFooter(this.client.user.username, this.client.user.avatarURL);
|
||||||
|
|
Loading…
Reference in New Issue