Fixed issue that made those thing crash the bot
This commit is contained in:
parent
6f6050edad
commit
02d4e78fdb
7 changed files with 8 additions and 8 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;
|
||||
image = message.author.displayAvatarURL();
|
||||
else if(Attachment[0] && Attachment[0].url.endsWith('gif'))
|
||||
return message.channel.send('Gif dosent work, sorry');
|
||||
else if (!image)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue