Unexpected ValidationError when sending modal
After running
ConfigSession.send, Discord gets no response and I get the below error (which does not trace back to my program)
16 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!Node
v18.20.3, discord.js@14.20.0You should use latest LTS version of NodeJS or atleast version
22.12.0
Node.js 22.12.0 or newer is required.
Got it, updating right now, but I don't think this is related? I'll let you know after I update.
Yeah, but u still should use what is required/recommended
Can confirm I am still having issues (now running
v22.17.0)please do this
i can already see one issue there, you're creating nested listeners
and where is this.parts defined
could you elaborate?

^ sample parts
Perfect, that fixed the main issue regarding the modal not opening
just confused as to what wolvinny is talking about nested listeners
i set my listeners on/off yeah
but each config session will have its own instance so it should work ok
?
you can look into collectors
because collectors do that for you
:method: ButtonInteraction#awaitModalSubmit()
discord.js@14.21.0
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.