Discord js V14 modal submit error

My data is being saved into database but the form on discord is not submitting it shows something went wrong on form but the form doesn't close but still i get the success message on my discord channel here is the code https://srcshare.io/65f515261484a59ebf6dd532 screen shot link https://imgur.com/a/TVvGjis see behind form it says You have been successfully registered! below is the code where i add the command https://srcshare.io/65f525a90c03f0cf96e85dad I tried to see the database if it actually saves the data inside the DB and yes it does but my form is not submitting it just says something wrong but shows registration successful
SrcShare
Easily share your source code with other developers.
SrcShare
Easily share your source code with other developers.
9 Replies
d.js toolkit
d.js toolkit9mo ago
- 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 OP
monbrey
monbrey9mo ago
This happens when you don't respond to the Modal submit interaction to close it
Aphelious
ApheliousOP9mo ago
how do i do that @ʎǝɹquoɯ ?
d.js docs
d.js docs9mo ago
:method: ModalSubmitInteraction#reply() Creates a reply to this interaction. (more...)
monbrey
monbrey9mo ago
Or other response, just like slash commands
Aphelious
ApheliousOP9mo ago
if (interaction.isModalSubmit()) { i did use this it didnt work after i used it it didnt save into database too it just showed something when wrong on the form @ʎǝɹquoɯ
monbrey
monbrey9mo ago
Not sure what I'm supposed to do with what you're telling me
d.js docs
d.js docs9mo ago
:guide: Popular Topics: Collectors - Interaction collectors > Await modal submit read more
Aphelious
ApheliousOP9mo ago
Thx fixed didnt add this statement if (collectedInteractions) { await collectedInteractions.reply({ content: Saved, });
Want results from more Discord servers?
Add your server