How to access interaction.options.getSubcommand()
Hi, I have a command in which I also have two subcommands.
However when I try to access the subcommand via the getSubcommand() the function is not available for me
6 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!According to discord.js guide on resolving a subcommand I should have the function getSubcommand inside the options property
Idk if this has anything to do with the type of the command
Type it as ChatInputCommandInteraction
thanks a lot !