Reaction Collector not collecting reactions in DMs
discordjs 14.12.1
24 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!might need the partials?
what do you mean?
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
you need channel partial to get messages so would make sense to have them as well i think.
Is this what you're saying?
get dm intent asw
I guess I don't really need guild intents, eh?
Guilds is one you should ideally always enable
Seen you also have GuildMessages, just keep it
Adding that didn't solve the issue. It's still not recognizing when I react to the message
My bot DMs the user, and I need to capture their reaction so that I can record whether they are interested this week.
I see, the message is defined here:
Here is the full code before the collector:
emoji.name
property to an array of emoji characters. However, the emoji.name
property isn't actually the Unicode character (that you have specified in the array) but rather the emojis literal name (:thumbsup:
in this case) therefor doesn't match, causing the function to return false.
Instead of using emoji.name
you should be able to use emoji.toString()
(I think) or just have the emoji's literal name in the array instead of the Unicode characters.
Hope that makes sense.I still can't figure out why it won't respond