Browse Source
Load member from guild_member_update dispatch
v1.5.x
Florian Spieß
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
discord/state.py
|
|
@ -776,6 +776,9 @@ class ConnectionState: |
|
|
|
|
|
|
|
self.dispatch('member_update', old_member, member) |
|
|
|
else: |
|
|
|
if self._member_cache_flags.joined: |
|
|
|
member = Member(data=data, guild=guild, state=self) |
|
|
|
guild._add_member(member) |
|
|
|
log.debug('GUILD_MEMBER_UPDATE referencing an unknown member ID: %s. Discarding.', user_id) |
|
|
|
|
|
|
|
def parse_guild_emojis_update(self, data): |
|
|
|