K
Kord2mo ago
thelooter

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
SchlaubiBus
SchlaubiBus2mo ago
you should be able to check whether the Gateways coroutine scope isActive, as when it gives up to reconnect it closes
LustigerLurch
LustigerLurch2mo ago
there is also Gateway.ping and MasterGateway.averagePing

Did you find this page helpful?