Browse Source

Use member data from VOICE_STATE_UPDATE if not found in cache

pull/2548/head
Rapptz 5 years ago
parent
commit
3b8678da81
  1. 3
      discord/guild.py

3
discord/guild.py

@ -220,6 +220,9 @@ class Guild(Hashable):
self._voice_states[user_id] = after
member = self.get_member(user_id)
if member is None:
member = Member(data=data['member'], state=self._state, guild=self)
return member, before, after
def _add_role(self, role):

Loading…
Cancel
Save