Files
xiao/commands/guildinfo/emoji.js
T
Daniel Odendahl Jr 877f720cfc msg
2017-04-30 22:56:59 +00:00

19 lines
572 B
JavaScript

const { Command } = require('discord.js-commando');
module.exports = class EmojiCommand extends Command {
constructor(client) {
super(client, {
name: 'emoji',
group: 'guildinfo',
memberName: 'emoji',
description: 'Gives a list of the current 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. Perhaps you have no custom emoji?'));
}
};