This commit is contained in:
Daniel Odendahl Jr
2017-06-01 08:44:02 +00:00
parent 7802bb49cb
commit 14f85f94bd
129 changed files with 1915 additions and 1720 deletions
+3 -2
View File
@@ -11,14 +11,15 @@ module.exports = class AvatarCommand extends Command {
{
key: 'user',
prompt: 'Which user would you like to get the avatar of?',
type: 'user'
type: 'user',
default: ''
}
]
});
}
run(msg, args) {
const { user } = args;
const user = args.user || msg.author;
return msg.say(user.avatarURL('webp', 2048) || user.displayAvatarURL);
}
};