Await reaction & loop
Hi.
I am trying to use
.awaitReactions()
to run the addUserToGiveaway
on every reaction added to message. But, it only works after the "max" value is reached or timeout happens.
I wanna make it such that the code inside it runs on every reaction added. How do I do?
This is just a part of code. All the things like giveawayMessage and addUserToGiveaway have been declared and no other errors.2 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 OPHmmm lemme try
Thanks very much. It worked.
I am closing this then. Thnx again.