After working on the bot for a while, the function that push the commands do stale indefinitely.
The Rest.put call that push all commands blocks, and I believe we do get timeout by discord for doing that so often. (each code reload)
Proposal
Use Rest.get to get all commands schemas and diff with the one we have locally,
if nothing change: don't push,
if a command schema change: push only the changed command.
After working on the bot for a while, the function that push the commands do stale indefinitely.
The
Rest.put
call that push all commands blocks, and I believe we do get timeout by discord for doing that so often. (each code reload)Proposal
Use Rest.get to get all commands schemas and diff with the one we have locally, if nothing change: don't push, if a command schema change: push only the changed command.