Get Heartbeat of Gateway
Mostly I need a way to check the connection status to the Discord API for a healthcheck. Is there any way in Kord to easily get this?
2 Replies
you should be able to check whether the Gateways coroutine scope isActive, as when it gives up to reconnect it closes
there is also
Gateway.ping
and MasterGateway.averagePing