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 4585a486..a2eff5a5 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 50897dd7..4b372311 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 2ad16254..8eb14fd3 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 7edbb284..3a95cc45 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 c3545cc8..12891c69 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 7506820c..3b57c7b7 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)