What is the best way to get the subcommand from the command?
I have a command that uses subcommands. I know that there is an
interaction.options._subcommand
private property that returns exactly what I need. Is there any other recommended public property that can give me the name of the subcommand used?
Thanks!1 Reply
- 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!
- ✅
Marked as resolved by OP