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)