From 02d4e78fdbde062fd9cfa0e5322a7500f67e946a Mon Sep 17 00:00:00 2001 From: Supositware Date: Mon, 14 Jan 2019 20:27:27 +0100 Subject: [PATCH] Fixed issue that made those thing crash the bot --- 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 +- event/listeners/messageReactionAdd.js | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/commands/images/fetish.js b/commands/images/fetish.js index d0b4a5bc..5a067592 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; + image = message.author.displayAvatarURL(); 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 3f9f295e..b8d0ffdc 100644 --- a/commands/images/god.js +++ b/commands/images/god.js @@ -22,7 +22,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(); 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 b3407747..9424a893 100644 --- a/commands/images/idubbbz.js +++ b/commands/images/idubbbz.js @@ -28,7 +28,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(); 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 f1fd8331..843f4f2b 100644 --- a/commands/images/idubbbzpaint.js +++ b/commands/images/idubbbzpaint.js @@ -27,7 +27,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(); 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 f2c60ff7..56571f1e 100644 --- a/commands/images/like.js +++ b/commands/images/like.js @@ -21,7 +21,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(); 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 6983f071..005f3dea 100644 --- a/commands/images/ugly.js +++ b/commands/images/ugly.js @@ -21,7 +21,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(); else if (Attachment[0] && Attachment[0].url.endsWith('gif')) return message.channel.send('Gif dosent work, sorry'); else if (!image) diff --git a/event/listeners/messageReactionAdd.js b/event/listeners/messageReactionAdd.js index 19d46499..524666af 100644 --- a/event/listeners/messageReactionAdd.js +++ b/event/listeners/messageReactionAdd.js @@ -28,7 +28,7 @@ class MessageReactionAddListener extends Listener { const starEmbed = new MessageEmbed() .setColor(reaction.message.member.displayHexColor) .setDescription(messageContent) - .setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL) + .setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL()) .setTimestamp(); channel.send({ embed: starEmbed}); @@ -47,7 +47,7 @@ class MessageReactionAddListener extends Listener { const shameEmbed = new MessageEmbed() .setColor(reaction.message.member.displayHexColor) .setDescription(messageContent) - .setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL) + .setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL()) .setTimestamp(); channel.send({ embed: shameEmbed});