mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Fixed invites
This commit is contained in:
@@ -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));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user