fix(gateway): fix identify not sending
This commit is contained in:
parent
7acf32b33c
commit
8099709a21
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Reference in a new issue