diff options
| author | Rapptz <[email protected]> | 2016-07-15 22:46:00 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-07-15 22:46:00 -0400 |
| commit | 1c8ab25917df5984d59869e305194ee56b300647 (patch) | |
| tree | 7b9c5c5280f762a8cd66b04b1da036c0f2f503b1 /discord/client.py | |
| parent | Fix the displaying of Message.system_content (diff) | |
| download | discord.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.py | 16 |
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 |