From ebe6b5d0ced98252aa1b9c69f297adfe034a9318 Mon Sep 17 00:00:00 2001 From: Andrei Date: Wed, 10 May 2017 15:28:04 -0700 Subject: [PATCH] state - fix untracked/stale users --- disco/state.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disco/state.py b/disco/state.py index 848665b..49a63e0 100644 --- a/disco/state.py +++ b/disco/state.py @@ -286,8 +286,11 @@ class State(object): for member in event.members: member.guild_id = guild.id guild.members[member.id] = member + if member.id not in self.users: self.users[member.id] = member.user + else: + member.user = self.users[member.id] def on_guild_role_create(self, event): if event.guild_id not in self.guilds: