Fixed invites

This commit is contained in:
hydrabolt
2015-08-25 14:30:03 +01:00
parent 659fdf5bff
commit dd941ab604
8 changed files with 294 additions and 172 deletions

View File

@@ -17,13 +17,14 @@ class Server {
}
for (var member of data.members) {
// first we cache the user in our Discord Client,
// then we add it to our list. This way when we
// get a user from this server's member list,
// it will be identical (unless an async change occurred)
// to the client's cache.
this.members.push(client.addUser(member.user));
if(member.user)
this.members.push(client.addUser(member.user));
}
}