Commit 59bc18fd authored by Loïc Bersier's avatar Loïc Bersier 😎
Browse files

fetch guild members to (hopefully) fix the intent issues


Signed-off-by: Loïc Bersier's avatarloicbersier <loic.bersier1@gmail.com>
parent 986d0b7f
......@@ -32,6 +32,8 @@ class messageListener extends Listener {
});
}
await message.guild.members.fetch();
if (message.author.bot) return;
/* Banned words section
......
......@@ -26,6 +26,8 @@ class MessageReactionAddListener extends Listener {
});
}
await reaction.message.guild.members.fetch();
let starboardChannel, shameboardChannel;
let reactionCount = reaction.count;
......
......@@ -11,6 +11,13 @@ class messageReactionRemoveListener 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 => {
......@@ -18,6 +25,8 @@ class messageReactionRemoveListener extends Listener {
});
}
await reaction.message.guild.members.fetch();
let starboardChannel, shameboardChannel;
let reactionCount = reaction.count;
......
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