Unable to show modal from button interaction. (discord V14.8.0)
Hello, I've been struggling to get the modal from my button to work. I have done everything right as far as I can tell and have no errors from my code.
10 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 OPAn example of the bot running
dont nest your listeners like that
that will cause issues
instead use this
ButtonInteraction#awaitModalSubmit()
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
also might want to update your djs version
I will see if I can update my DJs without breaking captcha-canvas package
I thought it may be the listeners but I was unsure really thank you for confirming that for me.
Looking at what you sent me @werewolvinny 👻🌈 and that applies from what I understand to the submission of the modal and not actually showing the modal after the button click
then use a collector
I can retry using a collector most definitely and thank you.
Message#awaitMessageComponent()
Collects a single component interaction that passes the filter. The Promise will reject if the time expires.
Taking a look at it as we speak
@werewolvinny 👻🌈 Thank you this worked