Merge remote-tracking branch 'origin/indev-rewrite' into indev-rewrite-voice

This commit is contained in:
Amish Shah
2016-08-25 14:26:38 +01:00
3 changed files with 10 additions and 2 deletions

View File

@@ -100,6 +100,11 @@ class Client extends EventEmitter {
* @type {?String}
*/
this.password = null;
/**
* The time in milliseconds the Client connected
* @type {?Number}
*/
this.readyTime = null;
}
/**

View File

@@ -11,6 +11,7 @@ class ReadyHandler extends AbstractHandler {
const clientUser = new ClientUser(client, data.user);
client.user = clientUser;
client.readyTime = Date.now();
client.users.set(clientUser.id, clientUser);
for (const guild of data.guilds) {
client.dataManager.newGuild(guild);