Skip to content

Commit

Permalink
Ghost presence fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackzzila committed Oct 20, 2016
1 parent 73e51be commit 6df2882
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/events/PresenceUpdateEvent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ class PresenceUpdateEvent {
if (data['user'].length > 1) {
data['user'] = data['user'] as Map<String, dynamic>;
} else {
data['user'] = client.users[data['user']['id']]._raw;
data['user'] = client.users[data['user']['id']]?._raw;
}
if (data['user'] == null) return;

this.newMember = new Member._new(client, data);
this.oldMember = newMember.guild.members[newMember.id];
Expand Down

0 comments on commit 6df2882

Please sign in to comment.