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•2y ago
Message Not Public
Sign In & Join Server To View
node v19.3.0
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
200 commands per guild per day but I restarted my bot lots of times and never reached it
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I had it once bc I registered all my commands in all guilds but registering few commands to 1 guild isn't that bad
Yeah that's what my syncCommands function does
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yeah why?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Happy?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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•2y ago
Message Not Public
Sign In & Join Server To View
But aren't you sending requests when you fetch the commands or you don't consider that?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
You still could get ratelimited on a get request
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
bruh channels aren't meant to be counter or any of that crap