forked from Supositware/Haha-Yes
hopefully make it work more reliably?
This commit is contained in:
parent
ffaa215ca6
commit
3fdad04fae
2 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue