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
d.js toolkit
d.js toolkit15mo 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!
BenW
BenWOP15mo ago
Oh, and any way I can see my remaining registrations?
treble/luna
treble/luna15mo ago
You should only deploy your commands once and only deploy again when you edit them
BenW
BenWOP15mo ago
Agree, but if I made 20 edits to a command, had 10 commands. Thats my usage for the day, right?
treble/luna
treble/luna15mo ago
they are sent as a single api request assuming you're using the REST script
BenW
BenWOP15mo ago
Are you saying, I can run my registration script 200 times, regardless of the amount of commands being registered at that point?
treble/luna
treble/luna15mo ago
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
BenW
BenWOP15mo ago
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
treble/luna
treble/luna15mo ago
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
BenW
BenWOP15mo ago
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?
treble/luna
treble/luna15mo ago
not really but you shouldn't hit the cap unless you do some sketchy stuff
Want results from more Discord servers?
Add your server