From 776f53c563ea8603f3574e9653797c1914259938 Mon Sep 17 00:00:00 2001 From: Supositware Date: Wed, 6 Feb 2019 03:49:48 +0100 Subject: [PATCH] Fix error --- commands/images/fetish.js | 2 +- commands/images/god.js | 2 +- commands/images/idubbbz.js | 2 +- commands/images/idubbbzpaint.js | 2 +- commands/images/like.js | 2 +- commands/images/ugly.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/images/fetish.js b/commands/images/fetish.js index 4585a48..a2eff5a 100644 --- a/commands/images/fetish.js +++ b/commands/images/fetish.js @@ -21,7 +21,7 @@ class FetishCommand extends Command { let Attachment = (message.attachments).array(); let image = args.image; if (!Attachment[0] && !image) - image = message.author.displayAvatarURL(); + image = message.author.displayAvatarURL('png'); else if(Attachment[0] && Attachment[0].url.endsWith('gif')) return message.channel.send('Gif dosent work, sorry'); else if (!image) diff --git a/commands/images/god.js b/commands/images/god.js index 50897dd..4b37231 100644 --- a/commands/images/god.js +++ b/commands/images/god.js @@ -21,7 +21,7 @@ class GodCommand extends Command { let Attachment = (message.attachments).array(); let image = args.image; if (!Attachment[0] && !image) - image = message.author.displayAvatarURL(); + image = message.author.displayAvatarURL('png'); else if (Attachment[0] && Attachment[0].url.endsWith('gif')) return message.channel.send('Gif dosent work, sorry'); else if (!image) diff --git a/commands/images/idubbbz.js b/commands/images/idubbbz.js index 2ad1625..8eb14fd 100644 --- a/commands/images/idubbbz.js +++ b/commands/images/idubbbz.js @@ -27,7 +27,7 @@ class IdubbbzCommand extends Command { let Attachment = (message.attachments).array(); let image = args.image; if (!Attachment[0] && !image) - image = message.author.displayAvatarURL(); + image = message.author.displayAvatarURL('png'); else if (Attachment[0] && Attachment[0].url.endsWith('gif')) return message.channel.send('Gif dosent work, sorry'); else if (!image) diff --git a/commands/images/idubbbzpaint.js b/commands/images/idubbbzpaint.js index 7edbb28..3a95cc4 100644 --- a/commands/images/idubbbzpaint.js +++ b/commands/images/idubbbzpaint.js @@ -26,7 +26,7 @@ class IdubbbzPaintCommand extends Command { let Attachment = (message.attachments).array(); let image = args.image; if (!Attachment[0] && !image) - image = message.author.displayAvatarURL(); + image = message.author.displayAvatarURL('png'); else if (Attachment[0] && Attachment[0].url.endsWith('gif')) return message.channel.send('Gif dosent work, sorry'); else if (!image) diff --git a/commands/images/like.js b/commands/images/like.js index c3545cc..12891c6 100644 --- a/commands/images/like.js +++ b/commands/images/like.js @@ -20,7 +20,7 @@ class LikeCommand extends Command { let Attachment = (message.attachments).array(); let image = args.image; if (!Attachment[0] && !image) - image = message.author.displayAvatarURL(); + image = message.author.displayAvatarURL('png'); else if (Attachment[0] && Attachment[0].url.endsWith('gif')) return message.channel.send('Gif dosent work, sorry'); else if (!image) diff --git a/commands/images/ugly.js b/commands/images/ugly.js index 7506820..3b57c7b 100644 --- a/commands/images/ugly.js +++ b/commands/images/ugly.js @@ -20,7 +20,7 @@ class UglyCommand extends Command { let Attachment = (message.attachments).array(); let image = args.image; if (!Attachment[0] && !image) - image = message.author.displayAvatarURL(); + image = message.author.displayAvatarURL('png'); else if (Attachment[0] && Attachment[0].url.endsWith('gif')) return message.channel.send('Gif dosent work, sorry'); else if (!image)