Discord v14.8.0 Modal Submit not working.
Node version:
Current dependencies are as follows:
Slash command that creates an embed with a button to display a modal. The modal submit has the bot not responding at all.
5 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 OPTo collect interactions from an ephemeral message you also need to add
fetchReply: true
option to the replyThank you I didn't realize I needed that option and didn't know about it either.
It keeps saying something went wrong when I am trying to press submit on the modal, and I'm not getting the reply from the interaction.
Will this break anything ?
I've updated it
I'm wondering if it has something to do with line 69 - line 76 creating the issue with the modal submission.
changing that currently
ButtonInteraction#awaitModalSubmit()
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
Okay so this sounds like its a method that acts similar to a collector object right?
Alright, and I did get it to work where I am getting the console log from the promisified collector but the modal keeps saying something went wrong and doesn't close out
Is it possible I am missing something else?
Will do one moment
I'm not understanding because I have a block of code running inside the scope of the .then callback
I fixed the interaction by adding a interaction.reply message which has worked to solve the issue with the modal.