gatewayLatency property
Duration
gatewayLatency
Gets the latest gateway latency.
To calculate the gateway latency, nyxx measures the time it takes for Discord to answer the gateway heartbeat packet with a heartbeat ack packet. Note this value is updated each time gateway responses to ack.
Implementation
Duration get gatewayLatency => _gatewayLatency;