Add a Zombied event to clients
Created by: alexhorner
Summary
Adds a Zombied event to the DiscordClient and DiscordShardedClient for heartbeat failures
Details
When the heartbeat failure zombie message is triggered on the log, no event was present to execute a response. The Zombied event has now been added to allow the capture of this occurence.
Changes proposed
- Add an event for when enough heartbeat failures have occured to consider the connection zombied
Notes
I have created this event as over the last few days I have seena lot of zombied connections on my bot. I now have this running in prod. It has not naturally triggered yet, so I cannot confirm its functionality, but if there is a good way to test this, please let me know. If the event occurs naturally I shall reply. Hopefully that is acceptable for the contents of this PR