get reaction partial
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
caf1c98037
commit
2fefe31242
1 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
const { Listener } = require('discord-akairo');
|
||||
const fs = require('fs');
|
||||
let messageID = require('../../json/messageID.json'); // Save messages that ented starboard so we can edit/remove the embed
|
||||
let messageID = require('../../json/messageID.json'); // Save messages that entered starboard so we can edit/remove the embed
|
||||
|
||||
|
||||
class MessageReactionAddListener extends Listener {
|
||||
|
@ -12,6 +12,13 @@ class MessageReactionAddListener extends Listener {
|
|||
}
|
||||
|
||||
async exec(reaction) {
|
||||
if (reaction.partial) {
|
||||
await reaction.fetch()
|
||||
.catch(err => {
|
||||
return console.error(err);
|
||||
});
|
||||
}
|
||||
|
||||
if (reaction.message.partial) {
|
||||
await reaction.message.fetch()
|
||||
.catch(err => {
|
||||
|
|
Loading…
Reference in a new issue