From 621133f5bd64d22fd8b55fc43f6ffbf8cdcf6239 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Thu, 27 Jan 2022 18:03:04 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=9E=D1=82=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BB=D1=8F=D1=82=D1=8C=20=D0=B3=D0=B8=D1=84?= =?UTF-8?q?=D0=BA=D1=83,=20=D0=B5=D1=81=D0=BB=D0=B8=20=D1=83=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=BD=D0=B0=D1=8F=20=D0=B0=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Images/avatar.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/commands/Images/avatar.js b/commands/Images/avatar.js index 139cc453..b37e8df4 100644 --- a/commands/Images/avatar.js +++ b/commands/Images/avatar.js @@ -20,16 +20,14 @@ class Avatar extends Command { let user = await this.client.resolveUser(args[0]); if (!user) user = message.author; const avatarURL = user.displayAvatarURL({ - size: 512, dynamic: true, - format: "png" + size: 512 }); - if (message.content.includes("link")) message.channel.send({ content: `<${avatarURL}>` }); + if (args[0] === "link") return message.channel.send({ content: `<${avatarURL}>` }); message.channel.send({ files: [{ - name: "avatar.png", attachment: avatarURL }] });