ZumitoTeam / zumito-framework

Framework for creating a bot for discord
https://framework.zumito.dev
7 stars 1 forks source link

[🆙] Optimize slash commands refresh #41

Open fernandomema opened 5 months ago

fernandomema commented 5 months ago

Actually, everytime the bot is started, a request is sent to discord for update slash commands. We can reduce the requests made by framework by saving on database a hash of the data sent to discord and only send the request when the saved hash is different from current data hash