Way to listen for MessageReactionRemove when the messages aren't cached
I am trying to detect when reactions are removed from a post in a forum channel. The relevant code looks like this:
However, if I react with the 🍉 and then boot the bot up, and then remove it, it doesn't detect it. On the other hand, if I add the reaction while the bot is already up and then remove it, it does detect it.
11 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPEnable Reaction partial
as far as I can tell I have enabled them
So does that log you have there logs when you remove an uncached reaction?
It does not
there is no response at all from the event listener
And it works for cached ones?
yep
as far as i can tell
Hmm, not sure then, it should be working. Ideally you'd need to check if reaction is a partial (and fetch it if it is), but since you are saying it doesn't even fire the event.
alright
well ill keep experimenting then
https://github.com/discordjs/discord.js/issues/3123
this seems to be related
but others weren't able to reproduce it
and its on an outdated version
@NyR I have solved it
I needed the User partial
solution found here: https://github.com/discordjs/discord.js/issues/6662
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View