Fix user.status

This commit is contained in:
Amish Shah
2016-08-22 19:52:55 +01:00
parent cf34f253cb
commit 357502e520
3 changed files with 5 additions and 2 deletions

View File

@@ -34,6 +34,9 @@ class ClientDataManager {
}
newUser(data) {
if (this.client.users.get(data.id)) {
return this.client.users.get(data.id);
}
const user = new User(this.client, data);
this.client.users.set(user.id, user);
return user;