registering code not working
i'm trying to register a subcommand but it's not working, registering a normal command works with my command handler

11 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 OPthis is the error
Your command doesn't have a description
huh weird, it had one and it failed, i removed it and it failed too, i added it back and now giving different error
now it's invalid form body
Show the error then
Full error would be helpful
Your bot id is undefined
Wherever you are deploying commands, you are passing undefined id
yeah i think i'm having some async issues
need to recheck
cause earlier the command handler was working with a simple ping command
You need to check your deploy-commands.js file
ok fixed
was using client.id instead of client.application.id
ty for helping troubleshooting