fixed the error ( for now )

This commit is contained in:
Supositware 2019-02-06 04:06:18 +01:00
parent 630312a232
commit 478facea23
6 changed files with 6 additions and 6 deletions

View file

@ -21,7 +21,7 @@ class FetishCommand extends Command {
let Attachment = (message.attachments).array(); let Attachment = (message.attachments).array();
let image = args.image; let image = args.image;
if (!Attachment[0] && !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')) else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.channel.send('Gif dosent work, sorry'); return message.channel.send('Gif dosent work, sorry');
else if (!image) else if (!image)

View file

@ -21,7 +21,7 @@ class GodCommand extends Command {
let Attachment = (message.attachments).array(); let Attachment = (message.attachments).array();
let image = args.image; let image = args.image;
if (!Attachment[0] && !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')) else if (Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.channel.send('Gif dosent work, sorry'); return message.channel.send('Gif dosent work, sorry');
else if (!image) else if (!image)

View file

@ -27,7 +27,7 @@ class IdubbbzCommand extends Command {
let Attachment = (message.attachments).array(); let Attachment = (message.attachments).array();
let image = args.image; let image = args.image;
if (!Attachment[0] && !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')) else if (Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.channel.send('Gif dosent work, sorry'); return message.channel.send('Gif dosent work, sorry');
else if (!image) else if (!image)

View file

@ -26,7 +26,7 @@ class IdubbbzPaintCommand extends Command {
let Attachment = (message.attachments).array(); let Attachment = (message.attachments).array();
let image = args.image; let image = args.image;
if (!Attachment[0] && !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')) else if (Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.channel.send('Gif dosent work, sorry'); return message.channel.send('Gif dosent work, sorry');
else if (!image) else if (!image)

View file

@ -20,7 +20,7 @@ class LikeCommand extends Command {
let Attachment = (message.attachments).array(); let Attachment = (message.attachments).array();
let image = args.image; let image = args.image;
if (!Attachment[0] && !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')) else if (Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.channel.send('Gif dosent work, sorry'); return message.channel.send('Gif dosent work, sorry');
else if (!image) else if (!image)

View file

@ -20,7 +20,7 @@ class UglyCommand extends Command {
let Attachment = (message.attachments).array(); let Attachment = (message.attachments).array();
let image = args.image; let image = args.image;
if (!Attachment[0] && !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')) else if (Attachment[0] && Attachment[0].url.endsWith('gif'))
return message.channel.send('Gif dosent work, sorry'); return message.channel.send('Gif dosent work, sorry');
else if (!image) else if (!image)