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