TinkerStorm / interaction-prototypes

A Discord interaction prototype preparing to lay the foundations of a game service.
https://discord.gg/z5DPVHNBuw
GNU General Public License v3.0
2 stars 0 forks source link

failover: add `disabled` handler argument to game post manager if something goes wrong #15

Open sudojunior opened 2 years ago

sudojunior commented 2 years ago

Sometimes permissions can be removed without warning, and the service likely isn't prepared for that. There is a possibility to listen for each channel as a pre-emptive measure, or go the faster route and hit a 403 instead and then disable the handler instance. Logic to handle all components would also need to use this to catch any additional interactions before they can be run (if the failover code is active).