diff options
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 |