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 toolkit14mo 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
Syjalo14mo ago
Commands aren't cached by default. They caches with fetching or setting, editing, creating commands.
PAdventures
PAdventures14mo ago
k