Haha-Yes/commands/utility/listemote.js

16 lines
535 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',
group: 'fun',
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);
}
};