From 951f2d763e4840deffbe581a122fe96b08f736fe Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 16 Feb 2020 23:30:00 +0100 Subject: [PATCH] reverted some change --- event/listeners/messageReactionAdd.js | 4 ++-- event/listeners/messageReactionRemove.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/event/listeners/messageReactionAdd.js b/event/listeners/messageReactionAdd.js index 578c8e31..cc810d39 100644 --- a/event/listeners/messageReactionAdd.js +++ b/event/listeners/messageReactionAdd.js @@ -128,9 +128,9 @@ class MessageReactionAddListener extends Listener { let description = reaction.message.content; // if message come from nsfw channel and the star/shameboard channel isn't nsfw put it in spoiler - if (!reaction.message.content && reaction.message.embeds[0].description) + if (!reaction.message.content) description = reaction.message.embeds[0].description; - else + else if (!reaction.message.content) description = ''; if (reaction.message.channel.nsfw && !channel.nsfw) { diff --git a/event/listeners/messageReactionRemove.js b/event/listeners/messageReactionRemove.js index c24960ce..1792f324 100644 --- a/event/listeners/messageReactionRemove.js +++ b/event/listeners/messageReactionRemove.js @@ -86,7 +86,7 @@ class messageReactionRemoveListener extends Listener { // If the original embed description is empty make this embed empty ( and not undefined ) let description = message.embeds[0].description; - if (!message.embeds[0].description || message.embeds[0].description == undefined) + if (!message.embeds[0].description) description = ''; let Embed = client.util.embed()