From 055035f01d2f563eabf6e767e5e8af6757551ed2 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 13 Feb 2019 15:47:46 +0100 Subject: [PATCH] Attach image instead of sending link --- 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 d434058..b0d2f20 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:\n${message.author.displayAvatarURL()}`); + return message.channel.send('Your avatar:', {files: [message.author.displayAvatarURL('png', '2048')]}); else - return message.channel.send(`${args.user.username}'s avatar:\n${args.user.displayAvatarURL()}`); + return message.channel.send(`${args.user.username}'s avatar:`, {files: [args.user.displayAvatarURL('png', '2048')]}); } }