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 toolkit9mo 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
kileroxxOP9mo ago
monbrey
monbrey9mo ago
What happens when you try to send it?
kileroxx
kileroxxOP9mo ago
No description
monbrey
monbrey9mo ago
A modal is not a message component Wrong type of collector
d.js docs
d.js docs9mo ago
:guide: Other Interactions: Modals - Receiving modal submissions read more
kileroxx
kileroxxOP9mo ago
Does that mean I can't use a collector for a modal at all?
monbrey
monbrey9mo ago
You cant use a MessageComponentCollector because they arent message components You can use an InteractionCollector
kin.ts
kin.ts9mo ago
awaitModalSubmit exist
d.js docs
d.js docs9mo 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
kileroxxOP9mo ago
but i need for 13
d.js docs
d.js docs9mo 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.ts9mo ago
just the same
kileroxx
kileroxxOP9mo 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
monbrey9mo ago
yes
Want results from more Discord servers?
Add your server