hopefully make it work more reliably?

merge-requests/4/head
loicbersier 5 years ago
parent ffaa215ca6
commit 3fdad04fae

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

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

Loading…
Cancel
Save