Expose internal health of bot for health checks
Version: 1.5.2 Issue: Our bot has been running for several weeks without issue, but this morning it lost connection to discord and was not able to reconnect. It looks like the issue may have been fixed with 1.5.3 which we are upgrading to and deploying soon. However, we have a health check for our bot, but it did not detect the disconnect to discord. Currently there no way to check the internal status of the bot to see if it is connected or running.
Resolution: Expose a method or callback to query basic stats of the bot such as:
- Is the web socket connected
- Is the web socket expected to be open.
- Time since last heartbeat.
- Is session valid.
Thanks for making this great library, and we would appreciate any help in addressing this feature request.