Update WebSocketShard.js

This commit is contained in:
March 7th 2023-01-12 17:47:33 +07:00
parent ad259bc60e
commit 3cdf1ad9f9

View File

@ -434,7 +434,7 @@ class WebSocketShard extends EventEmitter {
this.resumeURL = packet.d.resume_gateway_url; this.resumeURL = packet.d.resume_gateway_url;
this.expectedGuilds = new Set(packet.d.guilds.filter(d => d?.unavailable == true).map(d => d.id)); this.expectedGuilds = new Set(packet.d.guilds.filter(d => d?.unavailable == true).map(d => d.id));
this.status = Status.WAITING_FOR_GUILDS; this.status = Status.WAITING_FOR_GUILDS;
this.debug(`[READY] Session ${this.sessionId} | ResumeURL ${this.resumeURL}.`); this.debug(`[READY] Session ${this.sessionId} | ResumeURL ${this.resumeURL}`);
this.lastHeartbeatAcked = true; this.lastHeartbeatAcked = true;
this.sendHeartbeat('ReadyHeartbeat'); this.sendHeartbeat('ReadyHeartbeat');
break; break;