Observe error in console. The message is sent and reacted to, but it appears that processing the reaction throws the error. Likely regressed from #9336 (cc @jaw0r3k)
Error:
.\node_modules\discord.js\src\structures\MessageReaction.js:164
else this.countDetails.normal++;
^
TypeError: Cannot read properties of undefined (reading 'normal')
at MessageReaction._add (.\node_modules\discord.js\src\structures\MessageReaction.js:164:17)
at MessageReactionAdd.handle (.\node_modules\discord.js\src\client\actions\MessageReactionAdd.js:43:14)
at Message.react (.\node_modules\discord.js\src\structures\Message.js:844:51)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ./test.js:11:1
Node.js v20.10.0
This does not happen without the Channel partial and the Guilds intent. Adding other intents or partials does not fix the error.
This also does not happen if a user other than the client user reacts to a message.
Marked as high priority as this is a regression that throws an error and should be fixed before release (which looks like it's soon)
Which package is this bug report for?
discord.js
Issue description
Error:
This does not happen without the Channel partial and the Guilds intent. Adding other intents or partials does not fix the error.
This also does not happen if a user other than the client user reacts to a message.
Marked as high priority as this is a regression that throws an error and should be fixed before release (which looks like it's soon)
Code sample
Versions
Issue priority
High (immediate attention needed)
Which partials do you have configured?
Channel
Which gateway intents are you subscribing to?
Guilds
I have tested this issue on a development release
a5afc406b