feat(Client): add conditional ready typings (#6073)

This commit is contained in:
Shino
2021-07-14 11:19:38 -04:00
committed by GitHub
parent 60148c6a78
commit 4206e35b23
4 changed files with 46 additions and 10 deletions

View File

@@ -373,8 +373,9 @@ class WebSocketManager extends EventEmitter {
/**
* Emitted when the client becomes ready to start working.
* @event Client#ready
* @param {Client} client The client
*/
this.client.emit(Events.CLIENT_READY);
this.client.emit(Events.CLIENT_READY, this.client);
this.handlePacket();
}