From f840c0c523d71e9c2f92e27c73c7ff1ef3766abc Mon Sep 17 00:00:00 2001 From: SiskelDev Date: Thu, 26 Jun 2025 18:08:01 +0200 Subject: [PATCH] Partials and Intents Fix --- bot.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bot.js b/bot.js index 491fe58..6657b06 100644 --- a/bot.js +++ b/bot.js @@ -29,6 +29,12 @@ let lastPostId = null; const client = new Discord.Client({ + partials: [ + Discord.Partials.Channel, + Discord.Partials.Reaction, + Discord.Partials.Message, + Discord.Partials.User + ], intents: [ Discord.GatewayIntentBits.Guilds, Discord.GatewayIntentBits.GuildMembers, @@ -428,6 +434,7 @@ client.on(Discord.Events.GuildMemberAdd, (member) => { // on Reaction Added client.on(Discord.Events.MessageReactionAdd, async (reaction, user, detail) => { const emoji = reaction._emoji; + const emojiId = (emoji.id == null) ? emoji.name : emoji.id; const member = reaction.message.guild.members.cache.get(user.id); const messageID = reaction.message.id;