aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTsumiki <[email protected]>2020-06-27 04:57:32 +0200
committerGitHub <[email protected]>2020-06-26 22:57:32 -0400
commit5cbbbca193c0f38ba7178e0e60cdfa113bd1ca8f (patch)
tree413245195377f1bdf0d8cbff9a9b44c3b1acc0f3
parentFix error raised when using the roles parameter. (diff)
downloaddiscord.py-5cbbbca193c0f38ba7178e0e60cdfa113bd1ca8f.tar.xz
discord.py-5cbbbca193c0f38ba7178e0e60cdfa113bd1ca8f.zip
Add versionadded to VoiceClient latency and average_latency
-rw-r--r--discord/voice_client.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py
index 047f54ae..bbc1767d 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -214,13 +214,18 @@ class VoiceClient:
This could be referred to as the Discord Voice WebSocket latency and is
an analogue of user's voice latencies as seen in the Discord client.
+
+ .. versionadded:: 1.4
"""
ws = self.ws
return float("inf") if not ws else ws.latency
@property
def average_latency(self):
- """:class:`float`: Average of most recent 20 HEARTBEAT latencies in seconds."""
+ """:class:`float`: Average of most recent 20 HEARTBEAT latencies in seconds.
+
+ .. versionadded:: 1.4
+ """
ws = self.ws
return float("inf") if not ws else ws.average_latency