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
d.js toolkit
d.js toolkit8mo 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!
kileroxx
kileroxxOP8mo ago
monbrey
monbrey8mo ago
What happens when you try to send it?
kileroxx
kileroxxOP8mo ago
No description
monbrey
monbrey8mo ago
A modal is not a message component Wrong type of collector
d.js docs
d.js docs8mo ago
:guide: Other Interactions: Modals - Receiving modal submissions read more
kileroxx
kileroxxOP8mo ago
Does that mean I can't use a collector for a modal at all?
monbrey
monbrey8mo ago
You cant use a MessageComponentCollector because they arent message components You can use an InteractionCollector
kin.ts
kin.ts8mo ago
awaitModalSubmit exist
d.js docs
d.js docs8mo ago
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.
kileroxx
kileroxxOP8mo ago
but i need for 13
d.js docs
d.js docs8mo ago
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.
kin.ts
kin.ts8mo ago
just the same
kileroxx
kileroxxOP8mo ago
did that mean i need to change this place:
const collector = interaction.channel.createMessageComponentCollector({ filter, time: 15000 });
const collector = interaction.channel.createMessageComponentCollector({ filter, time: 15000 });
monbrey
monbrey8mo ago
yes
Want results from more Discord servers?
Add your server