#Max number of command registrations

21 messages · Page 1 of 1 (latest)

last spade
#

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

lilac siloBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
last spade
#

Oh, and any way I can see my remaining registrations?

drowsy pond
#

You should only deploy your commands once

#

and only deploy again when you edit them

last spade
#

Agree, but if I made 20 edits to a command, had 10 commands. Thats my usage for the day, right?

drowsy pond
#

they are sent as a single api request

#

assuming you're using the REST script

last spade
#

Are you saying, I can run my registration script 200 times, regardless of the amount of commands being registered at that point?

drowsy pond
#

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

last spade
#

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'?

drowsy pond
#

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

last spade
#

Thanks for the help!

Do you know if there is indeed a way to see amount of registrations left?

drowsy pond
#

not really

#

but you shouldn't hit the cap unless you do some sketchy stuff