hopefully make it work more reliably?

This commit is contained in:
loicbersier 2020-01-19 13:24:11 +01:00
parent ffaa215ca6
commit 3fdad04fae
2 changed files with 2 additions and 0 deletions

View file

@ -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;

View file

@ -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;