aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-07-15 22:46:00 -0400
committerRapptz <[email protected]>2016-07-15 22:46:00 -0400
commit1c8ab25917df5984d59869e305194ee56b300647 (patch)
tree7b9c5c5280f762a8cd66b04b1da036c0f2f503b1 /discord/client.py
parentFix the displaying of Message.system_content (diff)
downloaddiscord.py-1c8ab25917df5984d59869e305194ee56b300647.tar.xz
discord.py-1c8ab25917df5984d59869e305194ee56b300647.zip
Add support for querying information about group calls.
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py
index a97eef18..b92120a9 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -2651,6 +2651,22 @@ class Client:
"""
return self.connection._get_voice_client(server.id)
+ def group_call_in(self, channel):
+ """Returns the :class:`GroupCall` associated with a private channel.
+
+ If no group call is found then ``None`` is returned.
+
+ Parameters
+ -----------
+ channel: :class:`PrivateChannel`
+ The group private channel to query the group call for.
+
+ Returns
+ --------
+ Optional[:class:`GroupCall`]
+ The group call.
+ """
+ return self.connection._calls.get(channel.id)
# Miscellaneous stuff