Files
xiao/commands/other/emoji-image.js
T
dragonfire535 a006a8a8de Lots of changes
2017-10-07 11:18:08 -04:00

27 lines
616 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: 'other',
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] });
}
};