diff options
Diffstat (limited to 'discord/gateway.py')
| -rw-r--r-- | discord/gateway.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index 547d3401..c995ef46 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -428,7 +428,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol): @property def latency(self): - """float: Measures latency between a HEARTBEAT and a HEARTBEAT_ACK in seconds.""" + """:obj:`float`: Measures latency between a HEARTBEAT and a HEARTBEAT_ACK in seconds.""" heartbeat = self._keep_alive return float('inf') if heartbeat is None else heartbeat._last_ack - heartbeat._last_send |