Collectors crashing bot
In this case when you:
1. click on button (modal shows up)
2. cancel modal
3. click on button again (modal shows up)
4. fill modal and submit
Handled error:
unhandled error:
6 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 staffThe filter for the collector is set to the message id, so when someone uses it twice, both collectors fire. Is there any solution possible?
Filter on the modals custom id, and make it unique each time the modal opens
Wow. gotcha, thanks.
Easiest way to do that is just to include the button interaction id in the modal custom id
I see, wow, thank you, trying now.
Works, thank you.