fix picture size

This commit is contained in:
loicbersier 2019-06-22 18:44:24 +02:00
parent 7d978527da
commit 32b2b7ca07

View file

@ -21,9 +21,9 @@ class AvatarCommand extends Command {
async exec(message, args) { async exec(message, args) {
if (!args.user) if (!args.user)
return message.channel.send('Your avatar:', {files: [message.author.displayAvatarURL('png', '2048')]}); return message.channel.send('Your avatar:', {files: [message.author.displayAvatarURL() + '?size=2048']});
else else
return message.channel.send(`${args.user.username}'s avatar:`, {files: [args.user.displayAvatarURL('png', '2048')]}); return message.channel.send(`${args.user.username}'s avatar:`, {files: [args.user.displayAvatarURL() + '?size=2048']});
} }
} }