error when deploying commands
i think the error is about subcommands and the only command i have with subcommands is this one:
5 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 OPthe error
discord.js - 14.16.3
node - 22.10.0
when using subcommands/groups, you can't have other option types at the same level since you can't use the base command separate from the subcommands
which is to say, you'd need to add the string option to the subcommand rather than the base command
thanks it worked