Client Question

Why does the following sometimes work when the client / code starts / runs and other times doesn't? client.application.commands.cache.size Normally returns 28 Other times returns 0
3 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Syjalo
Syjalo2y ago
Commands aren't cached by default. They caches with fetching or setting, editing, creating commands.
PAdventures
PAdventuresOP2y ago
k
Want results from more Discord servers?
Add your server