Verify Modal
Hey i have a problem i want to create a verify command with a modal my problem is i dont can send this modal
15 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!What happens when you try to send it?
A modal is not a message component
Wrong type of collector
Does that mean I can't use a collector for a modal at all?
You cant use a MessageComponentCollector because they arent message components
You can use an InteractionCollector
awaitModalSubmit exist
Documentation suggestion for @ichbinkuhl:
:method: MessageComponentInteraction#awaitModalSubmit()
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
but i need for 13
Documentation suggestion for @ichbinkuhl:
:method: CommandInteraction#awaitModalSubmit()
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
just the same
did that mean i need to change this place:
yes