Subcommands show up as individual commands
Hey! I'm having some trouble with commands and subcommands. I've already implemented the code for /count create and /count set, but whenever the bot is deployed, the slash commands being shown are just /create and /set. Here is the commands code.
Not too sure why it's not picking up its a subcommand, but if anyone has had a similar issue, any help is appreciated!
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!
- ✅
Marked as resolved by OPDiscord.js Version:
[email protected]
Node: v20.6.0
Solved for anyone who has the same issue - Restarting discord seems to fix it.