From 973474f9c941c7e3b97a52d35affc248ec6a7306 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 1 Jan 2020 15:02:02 +0100 Subject: [PATCH] Fixed starboard --- event/listeners/messageReactionAdd.js | 2 +- event/listeners/messageReactionRemove.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/event/listeners/messageReactionAdd.js b/event/listeners/messageReactionAdd.js index 201adef3..344fc715 100644 --- a/event/listeners/messageReactionAdd.js +++ b/event/listeners/messageReactionAdd.js @@ -81,7 +81,7 @@ class MessageReactionAddListener extends Listener { let message = await channel.messages.get(boardID); // If the original embed description is empty make this embed empty ( and not undefined ) let description; - if (message.embeds[0].description == undefined) + if (message.embeds[0].description == '') description = ''; let Embed = client.util.embed() diff --git a/event/listeners/messageReactionRemove.js b/event/listeners/messageReactionRemove.js index a9e9ba07..0dcbf80a 100644 --- a/event/listeners/messageReactionRemove.js +++ b/event/listeners/messageReactionRemove.js @@ -79,7 +79,7 @@ class messageReactionRemoveListener extends Listener { let message = await channel.messages.get(boardID); // If the original embed description is empty make this embed empty ( and not undefined ) let description; - if (message.embeds[0].description == undefined) + if (message.embeds[0].description == '') description = ''; let Embed = client.util.embed()