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 toolkit2mo 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!
monbrey
monbrey2mo ago
What happens when you try to send it?
ichbinkuhl
ichbinkuhl2mo ago
No description
monbrey
monbrey2mo ago
A modal is not a message component Wrong type of collector
d.js docs
d.js docs2mo ago
:guide: Other Interactions: Modals - Receiving modal submissions read more
ichbinkuhl
ichbinkuhl2mo ago
Does that mean I can't use a collector for a modal at all?
monbrey
monbrey2mo ago
You cant use a MessageComponentCollector because they arent message components You can use an InteractionCollector
kin.ts
kin.ts2mo ago
awaitModalSubmit exist
d.js docs
d.js docs2mo 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.
ichbinkuhl
ichbinkuhl2mo ago
but i need for 13
d.js docs
d.js docs2mo 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.ts2mo ago
just the same
ichbinkuhl
ichbinkuhl2mo 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
monbrey2mo ago
yes