Client only deploys 3-4 slash commands
Hey, I have 7 slash commands that I want to deploy but I can't (it only deploys 3 or 4).
Should I wait for client to deploy more or what?
13 Replies
- 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.
- Issue solved? Press the button!discord.js v14.11.0
node.js v16
You should not deploy your commands on every start
Only when you add or edit them
So I need to use
client.application?.commands.create(<scommand.data>, <guild.id>)
at the end of every slash command file or what? 💀No
I've heard that commands that are the same as before don't count towards the rate limit
nope
regardless
the rest.put sends a single api request
While I do agree that it's unnecessary to call the API when there's no change. I think only updates count
Or well creating them, but not 100% sure on that
thats for guild.commands.set, which you do not use
Ah alright, fair
Yeah this solved the problem
thanks