Files
xiao/commands/info/emoji-image.js
T
Daniel Odendahl Jr ab2d75c3a6 Move groups around
2017-11-03 17:45:45 +00:00

27 lines
615 B
JavaScript

const { Command } = require('discord.js-commando');
module.exports = class EmojiImageCommand extends Command {
constructor(client) {
super(client, {
name: 'emoji-image',
aliases: ['bigify-emoji', 'emoji-url', 'big-emoji'],
group: 'info',
memberName: 'emoji-image',
description: 'Responds with an emoji\'s full-scale image.',
guildOnly: true,
clientPermissions: ['ATTACH_FILES'],
args: [
{
key: 'emoji',
prompt: 'Which emoji would you like to get the image of?',
type: 'emoji'
}
]
});
}
run(msg, { emoji }) {
return msg.say({ files: [emoji.url] });
}
};