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 toolkit12mo 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
KAVI12mo 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
keekztah12mo ago
ok thanks
KAVI
KAVI12mo ago
Np. Use the provided type guards to differentiate between the components. Good luck
keekztah
keekztah12mo ago
ok wait if im using buttons within buttons would i need to do that too? nvm i got it ty