Series of component interactions
I have a flow in which I need a user to start with a context menu command, then I display a select menu with a set of categories, then display a set of roles based on the category selection, then add the role to the member the context command was used on.
I was working on using collectors to do this, and I can get through the first one without issue, but I cant figgure out how to do the second menu succesfully.
I need help either getting this to work, or advice on a better setup. Normally I handle all interactions using the custom_id in an interaction handler, rather than with these collectors, but in this case I need the id of the member that the command was run on at the end of these menus and I am not sure how I would achieve that without the collector setup.
2 Replies
- 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!:method: Message#createMessageComponentCollector()
[email protected]
Creates a message component interaction collector.