aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-07-15 23:43:40 -0400
committerRapptz <[email protected]>2016-07-15 23:43:40 -0400
commitd961bc4da0586216d40cfafd231215832eb94608 (patch)
treefc897062cd1aca98b8ab7246dbfeaa8d5f25cc4f
parentAdd utility properties to CallMessage to query information. (diff)
downloaddiscord.py-d961bc4da0586216d40cfafd231215832eb94608.tar.xz
discord.py-d961bc4da0586216d40cfafd231215832eb94608.zip
Add ourselves into the ringing lookup cache.
-rw-r--r--discord/calls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/calls.py b/discord/calls.py
index b8f3ab5b..564344fd 100644
--- a/discord/calls.py
+++ b/discord/calls.py
@@ -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):