Files
xiao/commands/user-info/avatar.js
T
Daniel Odendahl Jr fd4e35533a 23
2017-06-17 03:26:31 +00:00

26 lines
729 B
JavaScript

const Command = require('../../structures/Command');
module.exports = class AvatarCommand extends Command {
constructor(client) {
super(client, {
name: 'avatar',
group: 'user-info',
memberName: 'avatar',
description: 'Responds with a link to a user\'s avatar.',
args: [
{
key: 'user',
prompt: 'Which user would you like to get the avatar of?',
type: 'user',
default: ''
}
]
});
}
run(msg, args) {
const user = args.user || msg.author;
return msg.say(user.displayAvatarURL({ size: 2048 }));
}
};