List commands

Hello. Can i list command Like Client.commands or anything like?
6 Replies
d.js toolkit
d.js toolkit6mo ago
- 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 OP
treble/luna
treble/luna6mo ago
client.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()
h4ze
h4zeOP6mo ago
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
treble/luna
treble/luna6mo ago
Thrn use this
h4ze
h4zeOP6mo ago
The problem is .. this fetch all commands .. I have a few dev commands .. there shouldn’t be list
treble/luna
treble/luna6mo ago
Then filter those out Or map over your client.slashCommands
Want results from more Discord servers?
Add your server