Max number of command registrations
Hi, I am working on transitioning my bot to a slash commands. I see there is a limit on how many times we can register commands a day. How do you get around this in development?
For example if I have 10 commands, and go through 20 iterations of a single command during development I would run out of registrations. Am I expected to only register one command at a time? What if I'm simply pushing a lot of commands into my bot on a certain day?
Any help on best practices here would be great
11 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!Oh, and any way I can see my remaining registrations?
You should only deploy your commands once
and only deploy again when you edit them
Agree, but if I made 20 edits to a command, had 10 commands. Thats my usage for the day, right?
they are sent as a single api request
assuming you're using the REST script
Are you saying, I can run my registration script 200 times, regardless of the amount of commands being registered at that point?
In theory yes. Not that you should however
I dont really see why a command would need that much changes anyways
mind you, changing the execute or whatever handling you have doesnt mean you have to redeploy
Ahh ok, so if I had a 50 command bot, I could register all 50 commands at once but it would count as one 'use'?
Ohhhh, I see
your handling isn't handled by disocrd
You have to create your own event/command handler
if you change your command name, options, etc, then you have to redeploy
Yeah thats all done. I had a dumb moment and thought it needed a refresh. Duh!
Thanks for the help!
Do you know if there is indeed a way to see amount of registrations left?
not really
but you shouldn't hit the cap unless you do some sketchy stuff