From 1f50274554995500ba178c6b39ec35963a501fda Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 24 Apr 2017 12:57:02 -0700 Subject: [PATCH] Fix users loaded in GuildCreate missing presence information The presence data comes sep. from the users info here, so we need to load it. --- disco/state.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disco/state.py b/disco/state.py index 37a38ff..f914b29 100644 --- a/disco/state.py +++ b/disco/state.py @@ -186,6 +186,9 @@ class State(object): for member in six.itervalues(event.guild.members): self.users[member.user.id] = member.user + for presence in event.presences: + self.users[presence.user.id].presence = presence + for voice_state in six.itervalues(event.guild.voice_states): self.voice_states[voice_state.session_id] = voice_state