Commit 2fefe312 authored by Loïc Bersier's avatar Loïc Bersier 😎
Browse files

get reaction partial


Signed-off-by: Loïc Bersier's avatarloicbersier <loic.bersier1@gmail.com>
parent caf1c980
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 => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment