Discord.js: TypeError on MESSAGE_REACTION_ADD

Created on 22 Sep 2020  Â·  9Comments  Â·  Source: discordjs/discord.js

Please describe the problem you are having in as much detail as possible:
Got few times a TypeError when receiving a MESSAGE_REACTION_ADD event.

2020-09-22_2789

2020-09-22_2790

Further details:

  • discord.js version: latest master
  • Node.js version: v12.18.3
  • Operating system: debian 9
  • Priority this issue should have – please be realistic and elaborate if possible: normal

Relevant client options:

  • partials: ['REACTION','MESSAGE']
  • gateway intents: 13999
  • other: none
  • [x] I have also tested the issue on latest master, commit hash:
bug

All 9 comments

Have you tested this with partials enabled for USER and GUILD_MEMBER also?

Have you tested this with partials enabled for USER and GUILD_MEMBER also?

Nope, I don't even know in what particular case this does happen.
I only want the REACTION and MESSAGE partials enabled so testing with others doesn't make sense, goal is to fix in this particual case!

Partials shouldn't make a difference here as the crash occurs before anything with partials was done. It crashes in a code path that's a straight line from the raw gateway event, without any partials branching. That comes after the crash.

Duplicate of #4821, which has been fixed by #4822.

Duplicate of #4821, which has been fixed by #4822.

I am using the very latest version of d.js, this merge inclued.
This means it is not fixed.

The patch was landed after 12.3.1 landed, if you're using master, can you please provide the commit hash? "Latest master" is ambiguous and may not be actually the latest.

Sorry by latest master I mean latest commit, I'm up to date with this commit : 1e63f3756e814d6b1a2a9c17af9c2b28ce37e472

My bad, I have just confirmed the issue here, I approved the linked PR, sorry for not verifying properly 😅.

No problem, will precise the commit next time!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Brawaru picture Brawaru  Â·  3Comments

Alipoodle picture Alipoodle  Â·  3Comments

kvn1351 picture kvn1351  Â·  3Comments

PassTheMayo picture PassTheMayo  Â·  3Comments

Dmitry221060 picture Dmitry221060  Â·  3Comments