mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
20 lines
568 B
JavaScript
20 lines
568 B
JavaScript
const Command = require('../../structures/Command');
|
|
|
|
module.exports = class EmojiCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'emoji',
|
|
group: 'guildinfo',
|
|
memberName: 'emoji',
|
|
description: 'Gives a list of the server\'s custom emoji.',
|
|
guildOnly: true
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
const emojis = msg.guild.emojis;
|
|
if (!emojis.size) return msg.say('You have no Custom Emoji.');
|
|
return msg.say(emojis.map((emoji) => emoji).join(''));
|
|
}
|
|
};
|