Can't send modals ( An error occured )
Hi, i'm getting an error while sending modals
code:
Error : An error occured | directly on the modal
I receive the interaction correctly, seems he cant handle it.
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 OPand where do you reply to the interaction
interactionCreate. I just console log values for the moment.
show that code then
You got it, it's on the post
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
As there's no reply, if I just log values, it won't respond ?
yes
Added this
Seems to not working
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
It's considered as a BaseInteraction even is the statement
:method: BaseInteraction#isModalSubmit()
@14.15.3
Indicates whether this interaction is a ModalSubmitInteractionUnknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Edited. Thanks.
I got the same error I sent
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
if I log the interaction it's ok
And there's not catching of errors after
Only on UI discord
I was handling my modals and as i have this error, i thought it was cuz of my handler but no. Even if i just handle it in interactionCreate, does not work
Found the issue
I won't say to you cuz i'm embarassed
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
I hope it's cuz i'm tired, customId was different
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
So, my handler was good tho
i logged it many times and did not catch this mistake
it's sad lol. Thanks anyway for your help !
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View