fix(WebsocketShard): pass ignore ACK when Discord asks for a beat (#3993)

This commit is contained in:
didinele 2020-03-25 13:55:20 +02:00 committed by GitHub
parent f2fdb93318
commit 65e8c92d7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -429,7 +429,7 @@ class WebSocketShard extends EventEmitter {
this.ackHeartbeat();
break;
case OPCodes.HEARTBEAT:
this.sendHeartbeat('HeartbeatRequest');
this.sendHeartbeat('HeartbeatRequest', true);
break;
default:
this.manager.handlePacket(packet, this);