From 478facea236f005ef99f5d27fd3ba585a3776944 Mon Sep 17 00:00:00 2001 From: Supositware Date: Wed, 6 Feb 2019 04:06:18 +0100 Subject: [PATCH] fixed the error ( for now ) --- 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 a2eff5a5..66e1fd8b 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('png'); + image = message.author.displayAvatarURL().replace('webp', '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 4b372311..2202c3ff 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('png'); + image = message.author.displayAvatarURL().replace('webp', '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 8eb14fd3..0a4b017b 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('png'); + image = message.author.displayAvatarURL().replace('webp', '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 3a95cc45..38ca1b19 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('png'); + image = message.author.displayAvatarURL().replace('webp', '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 12891c69..a96233b2 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('png'); + image = message.author.displayAvatarURL().replace('webp', '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 3b57c7b7..aa56327d 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('png'); + image = message.author.displayAvatarURL().replace('webp', 'png'); else if (Attachment[0] && Attachment[0].url.endsWith('gif')) return message.channel.send('Gif dosent work, sorry'); else if (!image)