Fix error

This commit is contained in:
Supositware 2019-02-06 03:49:48 +01:00
parent 468cf18c86
commit 776f53c563
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 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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)