List emotes on server
This commit is contained in:
parent
c774aeef90
commit
d01d5afefc
1 changed files with 16 additions and 0 deletions
16
commands/utility/listemote.js
Normal file
16
commands/utility/listemote.js
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
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`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async run(message, { text }) {
|
||||||
|
const emojiList = message.guild.emojis.map((e, x) => (x + ' = ' + e) + ' | ' +e.name).join('\n');
|
||||||
|
message.channel.send(emojiList);
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in a new issue