Haha-Yes/commands/utility/listemote.js
2018-09-23 18:00:41 +02:00

16 lines
No EOL
539 B
JavaScript

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