make client.readyTime a date

This commit is contained in:
Amish Shah
2016-09-04 11:55:17 +01:00
parent 9c915d1e0a
commit 1155c482f1
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -99,8 +99,8 @@ class Client extends EventEmitter {
*/
this.password = null;
/**
* The time in milliseconds the Client connected
* @type {?number}
* The date at which the Client was regarded as being in the `READY` state.
* @type {?Date}
*/
this.readyTime = null;
this._intervals = [];

View File

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