Haha-Yes/commands/utility/listemote.js

16 lines
539 B
JavaScript
Raw Normal View History

2018-09-22 18:36:06 +02:00
const { Command } = require('discord.js-commando');
module.exports = class listEmoteCommand extends Command {
constructor(client) {
super(client, {
name: 'listemote',
2018-09-23 18:00:41 +02:00
group: 'utility',
2018-09-22 18:36:06 +02:00
memberName: 'listemote',
description: `List the emotes available on the server`,
});
}
2018-09-22 18:37:32 +02:00
async run(message) {
2018-09-22 18:36:06 +02:00
const emojiList = message.guild.emojis.map((e, x) => (x + ' = ' + e) + ' | ' +e.name).join('\n');
message.channel.send(emojiList);
}
};