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.
Imgur
Untitled Album
SrcShare
Easily share your source code with other developers.
9 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 OPThis happens when you don't respond to the Modal submit interaction to close it
how do i do that @ʎǝɹquoɯ ?
Or other response, just like slash commands
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ɯ
Not sure what I'm supposed to do with what you're telling me
Thx fixed
didnt add this statement
if (collectedInteractions) {
await collectedInteractions.reply({
content:
Saved
,
});