mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Add ourselves into the ringing lookup cache.
This commit is contained in:
parent
bd39c3ef45
commit
d961bc4da0
@ -107,6 +107,8 @@ class GroupCall:
|
||||
def _update(self, **kwargs):
|
||||
self.region = try_enum(ServerRegion, kwargs.get('region'))
|
||||
lookup = {u.id: u for u in self.call.channel.recipients}
|
||||
me = self.call.channel.me
|
||||
lookup[me.id] = me
|
||||
self.ringing = list(filter(None, map(lambda i: lookup.get(i), kwargs.get('ringing', []))))
|
||||
|
||||
def _update_voice_state(self, data):
|
||||
|
Loading…
x
Reference in New Issue
Block a user