From 60e2f7e2714686cda5051a076a1d25ccff01ca20 Mon Sep 17 00:00:00 2001 From: dolfies Date: Sun, 19 Feb 2023 18:16:24 -0500 Subject: [PATCH] Update call ring logic --- discord/calls.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/discord/calls.py b/discord/calls.py index 46bf36f3a..5fb8d3b27 100644 --- a/discord/calls.py +++ b/discord/calls.py @@ -275,7 +275,7 @@ class PrivateCall: The call has ended. """ channel = self.channel - await self._state.http.ring(channel.id, channel.recipient.id) + await self._state.http.ring(channel.id) @_running_only async def stop_ringing(self) -> None: @@ -489,7 +489,8 @@ class GroupCall(PrivateCall): ClientException The call has ended. """ - await self._state.http.stop_ringing(self.channel.id, *{r.id for r in recipients}) + channel = self.channel + await self._state.http.stop_ringing(channel.id, *{r.id for r in recipients or channel.recipients}) Call = Union[PrivateCall, GroupCall]