mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
More info stuffs
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = class EmojiInfoCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'emoji-info',
|
||||
aliases: ['emoji'],
|
||||
group: 'guild-info',
|
||||
memberName: 'emoji-info',
|
||||
description: 'Responds with detailed information on an emoji.',
|
||||
guildOnly: true,
|
||||
clientPermissions: ['EMBED_LINKS'],
|
||||
args: [
|
||||
{
|
||||
key: 'emoji',
|
||||
prompt: 'Which emoji would you like to get information on?',
|
||||
type: 'emoji'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { emoji }) {
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0x00AE86)
|
||||
.setThumbnail(emoji.url)
|
||||
.addField('❯ Name',
|
||||
emoji.name, true)
|
||||
.addField('❯ ID',
|
||||
emoji.id, true)
|
||||
.addField('❯ Creation Date',
|
||||
emoji.createdAt.toDateString(), true)
|
||||
.addField('❯ External',
|
||||
emoji.managed ? 'Yes' : 'No', true);
|
||||
return msg.embed(embed);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user