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!
- ✅
Marked as resolved by OPclient.commands is not a default property and is usually populated by yourself
If you want to list slash commands, use <Client>.application.commands.fetch()
for guild commands, use <Guild>.commands.fetch()
Nope. I deploy my commands in an array named client.slashCommands and client.prefixCommands .. the two on one array named client.commands .. but I can’t call this on my dashboard yyy
Thrn use this
The problem is .. this fetch all commands .. I have a few dev commands .. there shouldn’t be list
Then filter those out
Or map over your client.slashCommands