Archived
0
0
Fork 0

fix(gateway): fix identify not sending

This commit is contained in:
Daryl Ronningen 2021-07-16 20:08:20 -07:00
parent 7acf32b33c
commit 8099709a21
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

View file

@ -57,7 +57,6 @@ export class GatewayClient {
switch (parsedMessage.op) { switch (parsedMessage.op) {
case 10: case 10:
this._heartbeatInterval = parsedMessage.d.heartbeat_interval; this._heartbeatInterval = parsedMessage.d.heartbeat_interval;
this._heartbeatIntervalTimer = setInterval(() => this._sendHeartbeat(), this._heartbeatInterval * 1000);
this.send({ this.send({
op: 2, d: { op: 2, d: {
@ -73,6 +72,8 @@ export class GatewayClient {
token: this._token, token: this._token,
}, },
}); });
this._heartbeatIntervalTimer = setInterval(() => this._sendHeartbeat(), this._heartbeatInterval * 1000);
break; break;
default: default:
break; break;