From 32b2b7ca072dc1039f27c1a0043ae9bb60d36a56 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 22 Jun 2019 18:44:24 +0200 Subject: [PATCH] fix picture size --- commands/utility/avatar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/utility/avatar.js b/commands/utility/avatar.js index 82744143..6834fb29 100644 --- a/commands/utility/avatar.js +++ b/commands/utility/avatar.js @@ -21,9 +21,9 @@ class AvatarCommand extends Command { async exec(message, args) { 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 - 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']}); } }