From 3fdad04fae8aad43568264f2e220e2fa3f8a037a Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 19 Jan 2020 13:24:11 +0100 Subject: [PATCH] hopefully make it work more reliably? --- event/listeners/messageReactionAdd.js | 1 + event/listeners/messageReactionRemove.js | 1 + 2 files changed, 2 insertions(+) diff --git a/event/listeners/messageReactionAdd.js b/event/listeners/messageReactionAdd.js index c57b50cb..cb510987 100644 --- a/event/listeners/messageReactionAdd.js +++ b/event/listeners/messageReactionAdd.js @@ -78,6 +78,7 @@ class MessageReactionAddListener extends Listener { channel = client.channels.get(shameboardChannel.shameboard); } + reaction.message.fetch(boardID); let message = await channel.messages.get(boardID); // If the original embed description is empty make this embed empty ( and not undefined ) let description = message.embeds[0].description; diff --git a/event/listeners/messageReactionRemove.js b/event/listeners/messageReactionRemove.js index b71ec1a3..01856f79 100644 --- a/event/listeners/messageReactionRemove.js +++ b/event/listeners/messageReactionRemove.js @@ -76,6 +76,7 @@ class messageReactionRemoveListener extends Listener { channel = client.channels.get(shameboardChannel.shameboard); } + reaction.message.fetch(boardID); let message = await channel.messages.get(boardID); // If the original embed description is empty make this embed empty ( and not undefined ) let description = message.embeds[0].description;