getLatency method

int getLatency()

Sends a ping/pong to the APi websocket of discord and returns the latency

Example :

final int latency = client.getLatency();

Implementation

int getLatency () {
  return ioc.use<ShardManager>().getLatency();
}