1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/commands/utility/listemote.js

16 lines
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);
}
};