aboutsummaryrefslogtreecommitdiff
path: root/discord/calls.py
diff options
context:
space:
mode:
authorNCPlayz <[email protected]>2019-05-18 06:04:54 -0400
committerRapptz <[email protected]>2019-06-07 19:27:46 -0400
commit3c9bcc285147154a2980f6e661efdfa676672b6a (patch)
tree657bafa75e4e0d45361e394443ea932ad70e86a7 /discord/calls.py
parentAdded comment for/redo system information (diff)
downloaddiscord.py-3c9bcc285147154a2980f6e661efdfa676672b6a.tar.xz
discord.py-3c9bcc285147154a2980f6e661efdfa676672b6a.zip
Improve documentation
Diffstat (limited to 'discord/calls.py')
-rw-r--r--discord/calls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/calls.py b/discord/calls.py
index 596ac90a..8ab04145 100644
--- a/discord/calls.py
+++ b/discord/calls.py
@@ -38,7 +38,7 @@ class CallMessage:
Attributes
-----------
- ended_timestamp: Optional[datetime.datetime]
+ ended_timestamp: Optional[:class:`datetime.datetime`]
A naive UTC datetime object that represents the time that the call has ended.
participants: List[:class:`User`]
The list of users that are participating in this call.
@@ -70,7 +70,7 @@ class CallMessage:
Returns
---------
- datetime.timedelta
+ :class:`datetime.timedelta`
The timedelta object representing the duration.
"""
if self.ended_timestamp is None:
@@ -122,7 +122,7 @@ class GroupCall:
@property
def connected(self):
- """A property that returns the :class:`list` of :class:`User` that are currently in this call."""
+ """List[:class:`User`]: A property that returns all users that are currently in this call."""
ret = [u for u in self.channel.recipients if self.voice_state_for(u) is not None]
me = self.channel.me
if self.voice_state_for(me) is not None: