Merge branch 'dev'
commit
a9b527f43b
|
@ -1,3 +1,4 @@
|
||||||
|
import moment from 'moment';
|
||||||
import { Message, Role } from 'eris';
|
import { Message, Role } from 'eris';
|
||||||
import { Client, Command, RichEmbed } from '../class';
|
import { Client, Command, RichEmbed } from '../class';
|
||||||
|
|
||||||
|
@ -43,7 +44,7 @@ export default class Roleinfo extends Command {
|
||||||
embed.addField('Members', String(this.client.guilds.get(this.client.config.guildID).members.filter((m) => m.roles.includes(role.id)).length), 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', String(role.position), true);
|
embed.addField('Position', String(role.position), true);
|
||||||
embed.addField('Creation Date', new Date(role.createdAt).toLocaleString(), true);
|
embed.addField('Creation Date', `${moment(new Date(role.createdAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, 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);
|
||||||
embed.setTimestamp();
|
embed.setTimestamp();
|
||||||
|
|
Loading…
Reference in New Issue