Files
xiao/commands/guildinfo/emoji.js
T
Daniel Odendahl Jr 7802bb49cb Clean-Ups
2017-05-31 04:41:01 +00:00

19 lines
531 B
JavaScript

const Command = require('../../structures/Command');
module.exports = class EmojiCommand extends Command {
constructor(client) {
super(client, {
name: 'emoji',
group: 'guildinfo',
memberName: 'emoji',
description: 'Gives a list of the server\'s custom emoji.',
guildOnly: true
});
}
run(msg) {
return msg.say(msg.guild.emojis.map(e => e).join(''))
.catch(() => msg.say('There was an error sending the emoji.'));
}
};