pubsub.lazy_guild: update old presence's roles and status

This commit is contained in:
Luna Mendes 2018-11-18 18:37:59 -03:00
parent 38b01600aa
commit 1868d86fed
1 changed files with 4 additions and 0 deletions

View File

@ -880,6 +880,10 @@ class GuildMemberList:
roles = partial_presence.get('roles', old_presence['roles']) roles = partial_presence.get('roles', old_presence['roles'])
status = partial_presence.get('status', old_presence['status']) status = partial_presence.get('status', old_presence['status'])
# update the old presence's roles and status.
old_presence['roles'] = roles
old_presence['status'] = status
# calculate a possible new group # calculate a possible new group
new_group = await self.get_group_for_member( new_group = await self.get_group_for_member(
user_id, roles, status) user_id, roles, status)