Organise documentation

This commit is contained in:
NCPlayz authored and Rapptz committed 2019-03-19 08:24:42 -04:00
1 parent 5e65ec978c
commit fb02191b80
30 files changed
+417 -419

No files matched your search

+2 -2
View File
@@ -256,7 +256,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
Parameters
-----------
event : str
event: :class:`str`
The event name in all upper case to wait for.
predicate
A function that takes a data parameter to check for event
@@ -445,7 +445,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
@property
def latency(self):
""":obj:`float`: Measures latency between a HEARTBEAT and a HEARTBEAT_ACK in seconds."""
""":class:`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.latency