More info stuffs

This commit is contained in:
Daniel Odendahl Jr
2017-10-06 01:50:18 +00:00
parent 292ff007e5
commit 0f3d9abd83
8 changed files with 109 additions and 8 deletions
+19
View File
@@ -0,0 +1,19 @@
const { Command } = require('discord.js-commando');
module.exports = class EmojiListCommand extends Command {
constructor(client) {
super(client, {
name: 'emoji-list',
aliases: ['emojis'],
group: 'guild-info',
memberName: 'emoji',
description: 'Responds with a list of the server\'s custom emoji.',
guildOnly: true
});
}
run(msg) {
if (!msg.guild.emojis.size) return msg.say('This server has no custom emoji.');
return msg.say(msg.guild.emojis.map(emoji => emoji.toString()).join(''));
}
};