Is there any disadvantage when registering global commands on bot startup?

I'm trying to create a bot that is simple to setup and run yourself, which would also require it to register its own commands itself. Are there any issues if I register the commands before logging the bot in, which would essentially overwrite the global commands every time you restart it? As far as I can tell, overwriting commands does not count towards the daily creation limit. Or should I get the currently registered commands and manually check them for differences before trying to overwrite them? I know that the common practice is to use a deploy-commands.js script, but I'd like to automate deploying.
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Syjalo
Syjalo2y ago
It's better to check difference
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Yinoguns
Yinoguns2y ago
You won't but it's not good practice. I would advise at minimun have a seperate process that re-registers all your commands and run that when you make changes to them. The perfect implementation is to create/edit/delete per-command, but doing a full "set" to rest only when you make changes, is a good middle ground in my eyes.
Want results from more Discord servers?
Add your server