mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23: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;
|
||||
/**
|
||||
* 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 = [];
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user