mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 01:31:29 +00:00
Fix Gus' log messages
This commit is contained in:
parent
26804f3673
commit
492f706035
2 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ class ClientManager {
|
||||||
*/
|
*/
|
||||||
setupKeepAlive(time) {
|
setupKeepAlive(time) {
|
||||||
this.heartbeatInterval = this.client.setInterval(() => {
|
this.heartbeatInterval = this.client.setInterval(() => {
|
||||||
this.client.emit('debug', 'SENDING HEARTBEAT');
|
this.client.emit('debug', 'Sending heartbeat');
|
||||||
this.client.ws.send({
|
this.client.ws.send({
|
||||||
op: Constants.OPCodes.HEARTBEAT,
|
op: Constants.OPCodes.HEARTBEAT,
|
||||||
d: this.client.ws.sequence,
|
d: this.client.ws.sequence,
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ class WebSocketPacketManager {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (packet.op === Constants.OPCodes.HEARTBEAT_ACK) this.ws.client.emit('debug', 'HEARTBEAT ACK');
|
if (packet.op === Constants.OPCodes.HEARTBEAT_ACK) this.ws.client.emit('debug', 'Heartbeat acknowledged');
|
||||||
|
|
||||||
if (this.ws.status === Constants.Status.RECONNECTING) {
|
if (this.ws.status === Constants.Status.RECONNECTING) {
|
||||||
this.ws.reconnecting = false;
|
this.ws.reconnecting = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue