How to handle sub commands?
attached are the code for my command handler and the error. It happens when it tries to pass a new command through the handler, which has 2 sub commands. I never used sub commands before so I got no idea how to handle them. What should I change?


7 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 OPYou’re missing a description on one of your commands
oh i am
i am missing one on my base command
but why do i even need one? it isnt shown anywhere
also how did u know it was the description?
It’s visible in the integrations tab in a guild’s settings iirc
oh ok

ohhh thanks for letting me know! I'll look out for that in the future