mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 10:49:24 +00:00
Do not overwrite members that are already in cache during chunking.
This commit is contained in:
parent
ff14fa0fe8
commit
3862b1abcf
@ -379,7 +379,8 @@ class ConnectionState:
|
||||
members = data.get('members', [])
|
||||
for member in members:
|
||||
m = self._make_member(server, member)
|
||||
server._add_member(m)
|
||||
if m.id not in server._members:
|
||||
server._add_member(m)
|
||||
|
||||
# if the owner is offline, server.owner is potentially None
|
||||
# therefore we should check if this chunk makes it point to a valid
|
||||
|
Loading…
x
Reference in New Issue
Block a user