diff options
| author | Tobotimus <[email protected]> | 2018-01-06 17:21:56 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-01-06 17:23:59 -0500 |
| commit | 3112e1c17e7859adf6d13ed844f4c636b4bc30d8 (patch) | |
| tree | 70d7aafca549a8c245ee4fdab774e1ab5302d531 /discord/shard.py | |
| parent | [commands] Fix MissingRequiredArgument param handling (diff) | |
| download | discord.py-3112e1c17e7859adf6d13ed844f4c636b4bc30d8.tar.xz discord.py-3112e1c17e7859adf6d13ed844f4c636b4bc30d8.zip | |
Add intersphinx
Diffstat (limited to 'discord/shard.py')
| -rw-r--r-- | discord/shard.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/shard.py b/discord/shard.py index 32d448cc..b29e45d0 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -122,7 +122,7 @@ class AutoShardedClient(Client): Attributes ------------ - shard_ids: Optional[List[int]] + shard_ids: Optional[List[:class:`int`]] An optional list of shard_ids to launch the shards with. """ def __init__(self, *args, loop=None, **kwargs): @@ -171,7 +171,7 @@ class AutoShardedClient(Client): @property def latency(self): - """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. This operates similarly to :meth:`.Client.latency` except it uses the average latency of every shard's latency. To get a list of shard latency, check the @@ -183,7 +183,7 @@ class AutoShardedClient(Client): @property def latencies(self): - """List[Tuple[int, float]]: A list of latencies between a HEARTBEAT and a HEARTBEAT_ACK in seconds. + """List[Tuple[:class:`int`, :class:`float`]]: A list of latencies between a HEARTBEAT and a HEARTBEAT_ACK in seconds. This returns a list of tuples with elements ``(shard_id, latency)``. """ |