component collector

can i collect two different components? for example, i am using a button that leads me into a string select menu
5 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
KAVI
KAVI2y ago
You can use if conditions inside one messageComponentCollector to handle multiple component types. Don't give the component type to the collector if you wanna do it like that.
keekztah
keekztahOP2y ago
ok thanks
KAVI
KAVI2y ago
Np. Use the provided type guards to differentiate between the components. Good luck
keekztah
keekztahOP2y ago
ok wait if im using buttons within buttons would i need to do that too? nvm i got it ty
Want results from more Discord servers?
Add your server