Still need help understanding how I can stop a collector if await is used inside (for a modal)
Let's say the player dismisses the ephemeral message. The collector still runs because the actual "submit" button was not pressed which would stop it. When the command is ran a second time, there is an error stating the interaction is "unknown". How can I solve this?
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 OPor.. can I detect if a modal is not submitted, but closed ?
I literally just found that out and am trying now
does the custom id need to be a randomized string?
or can it be the same name
such as "report-modal"
ohhh
I see
alright