mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
23
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
const Command = require('../../structures/Command');
|
||||
|
||||
module.exports = class EmojiCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'emoji',
|
||||
group: 'guild-info',
|
||||
memberName: 'emoji',
|
||||
description: 'Responds with a list of the server\'s custom emoji.',
|
||||
guildOnly: true
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
const emoji = msg.guild.emojis;
|
||||
if (!emoji.size) return msg.say('You have no custom emoji.');
|
||||
return msg.say(emoji.map((e) => e).join(''));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user