mirror of
https://github.com/danbulant/discord.js
synced 2026-05-30 21:01:20 +00:00
src: Client#readyAt should be updated when triggerReady is called (#3234)
This commit is contained in:
parent
aa253d9551
commit
bc31746621
2 changed files with 3 additions and 1 deletions
|
|
@ -424,8 +424,11 @@ class WebSocketManager {
|
|||
this.debug('Tried to mark self as ready, but already ready');
|
||||
return;
|
||||
}
|
||||
|
||||
this.status = Status.READY;
|
||||
|
||||
this.client.readyAt = new Date();
|
||||
|
||||
/**
|
||||
* Emitted when the client becomes ready to start working.
|
||||
* @event Client#ready
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ module.exports = (client, { d: data }, shard) => {
|
|||
if (!ClientUser) ClientUser = require('../../../structures/ClientUser');
|
||||
const clientUser = new ClientUser(client, data.user);
|
||||
client.user = clientUser;
|
||||
client.readyAt = new Date();
|
||||
client.users.set(clientUser.id, clientUser);
|
||||
|
||||
for (const guild of data.guilds) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue