Why is it bad to `ApplicationCommandManager.set()` app commands when the bot is ready?

So I compared ApplicationCommandManager.set() with a custom function I wrote to sync commands and both are not effecting the version nor id of the command so set doesn't seem that bad.
19 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mooz.tsx
mooz.tsx2y ago
node v19.3.0
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mooz.tsx
mooz.tsx2y ago
200 commands per guild per day but I restarted my bot lots of times and never reached it
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mooz.tsx
mooz.tsx2y ago
I had it once bc I registered all my commands in all guilds but registering few commands to 1 guild isn't that bad
mooz.tsx
mooz.tsx2y ago
Yeah that's what my syncCommands function does
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mooz.tsx
mooz.tsx2y ago
Yeah why?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mooz.tsx
mooz.tsx2y ago
Happy?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mooz.tsx
mooz.tsx2y ago
So set is not problematic? Ratelimit is dynamic so if you send lots of the same request every little amount time that's a case you should consider being ratelimited
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mooz.tsx
mooz.tsx2y ago
But aren't you sending requests when you fetch the commands or you don't consider that?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mooz.tsx
mooz.tsx2y ago
You still could get ratelimited on a get request dogeHaHa
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mooz.tsx
mooz.tsx2y ago
bruh channels aren't meant to be counter or any of that crap