Collection Reaction not working.
I've been messing with this for hours and searching all the same stuff It's just not working for my so no idea what I'm doing wrong
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!
- ✅
Marked as resolved by OPWhat exactly do you want
It seems like your filter is only saying to collect the reactions from your bot
I want to get an the users who reacted
that's the newer one
then compare it with interaction.user.id
message.author.id returns your bot id
it probably is but I've tried many different ways
I was using interaction.user.id before that
You did
That means
message
is what your bot sent, not by the userI want to get all users who reacted to the message
I know
Then remove the condition
wym
You only need the reaction.emoji.name condition
Your code for the filter is:
If you want all users, just remove the condition where you compare the user ids
That way everyone who reacted with the airplane emoji will be in the collector
Right now it only filters it to 1 person
so like this
Yup
I've done this
Oh
I forgot you also need
Specifically the reaction partial
oh
My bad, I forgot one more thing
You need the GuildMessages intent as well
so the only thing I did not do
was Partials
that' was the 1 thing I was missing for the past 6 to 7 hours
fun
Thanks for the help.
No problem!