Files
xiao/commands/userinfo/avatar.js
T
Daniel Odendahl Jr 212ed27e3b Fix Stuff
2017-06-09 00:32:03 +00:00

26 lines
720 B
JavaScript

const Command = require('../../structures/Command');
module.exports = class AvatarCommand extends Command {
constructor(client) {
super(client, {
name: 'avatar',
group: 'userinfo',
memberName: 'avatar',
description: 'Gives 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 }));
}
};