mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
make client.readyTime a date
This commit is contained in:
parent
9c915d1e0a
commit
1155c482f1
3 changed files with 4 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
|
@ -99,8 +99,8 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
this.password = null;
|
this.password = null;
|
||||||
/**
|
/**
|
||||||
* The time in milliseconds the Client connected
|
* The date at which the Client was regarded as being in the `READY` state.
|
||||||
* @type {?number}
|
* @type {?Date}
|
||||||
*/
|
*/
|
||||||
this.readyTime = null;
|
this.readyTime = null;
|
||||||
this._intervals = [];
|
this._intervals = [];
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ class ReadyHandler extends AbstractHandler {
|
||||||
|
|
||||||
const clientUser = new ClientUser(client, data.user);
|
const clientUser = new ClientUser(client, data.user);
|
||||||
client.user = clientUser;
|
client.user = clientUser;
|
||||||
client.readyTime = Date.now();
|
client.readyTime = new Date();
|
||||||
client.users.set(clientUser.id, clientUser);
|
client.users.set(clientUser.id, clientUser);
|
||||||
|
|
||||||
for (const guild of data.guilds) client.dataManager.newGuild(guild);
|
for (const guild of data.guilds) client.dataManager.newGuild(guild);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue