mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Fix READY bug when logging in with email/password, add UserUpdate packet handler
This commit is contained in:
@@ -16,7 +16,6 @@ class ReadyHandler extends AbstractHandler {
|
||||
handle(packet) {
|
||||
let data = packet.d;
|
||||
let client = this.packetManager.client;
|
||||
|
||||
client.manager.setupKeepAlive(data.heartbeat_interval);
|
||||
|
||||
client.store.user = client.store.add('users', new ClientUser(client, data.user));
|
||||
@@ -29,6 +28,8 @@ class ReadyHandler extends AbstractHandler {
|
||||
client.store.NewChannel(privateDM);
|
||||
}
|
||||
|
||||
this.packetManager.ws.checkIfReady();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user