mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
make client.readyTime a date
This commit is contained in:
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user