forked from Supositware/Haha-Yes
fixed the error ( for now )
This commit is contained in:
parent
630312a232
commit
478facea23
6 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue