Help — Collector not catching ModalSubmitInteraction
Hey, I’m building a paginator and I’m using a collector for the navigation buttons. That part works fine.
But I also want to use a modal (showModal) for a “go to page” feature
The problem:
I added isModalSubmit() handling inside the same collector, but it never fires when I submit the modal.
Buttons are collected just fine, but modal submits don’t get picked up at all.
9 Replies
DJS: v14.22.1
NODE: v22.16.0
got the solution
nvm
it sounds like you're attempting to use a component collector to collect a modal submit
modals aren't components, so you'd use a separate collector
documentation suggestion for @Freycikkk:
:method: ButtonInteraction#awaitModalSubmit()
discord.js@14.22.1
Collects a single modal submit interaction that passes the filter. The Promise will reject if the time expires.
now i'm using InteractionCollector
then could you show your code?
no i meant i got the solution and now i'm using InteractionCollector
its working the way i wanted it to be
then feel free to hit the Solved button
The thread owner has marked this issue as solved.