mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +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;
|
||||
/**
|
||||
* 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue