seyfert 2.2.1-dev-13823891089.0 → 2.2.1-dev-13826509766.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138,7 +138,7 @@ class Shard {
138
138
  this.debugger?.debug(`[Shard #${this.id}] Sending ${requested ? '' : 'un'}requested heartbeat (Ack=${this.heart.ack})`);
139
139
  if (!requested) {
140
140
  if (!this.heart.ack) {
141
- this.close(shared_1.ShardSocketCloseCodes.ZombiedConnection, 'Zombied connection');
141
+ this.reconnect(shared_1.ShardSocketCloseCodes.ZombiedConnection);
142
142
  return;
143
143
  }
144
144
  this.heart.ack = false;
@@ -321,6 +321,7 @@ class Shard {
321
321
  case shared_1.ShardSocketCloseCodes.Reconnect:
322
322
  case shared_1.ShardSocketCloseCodes.Resharding:
323
323
  case shared_1.ShardSocketCloseCodes.ShutdownAll:
324
+ case shared_1.ShardSocketCloseCodes.ZombiedConnection:
324
325
  //Force disconnect, ignore
325
326
  break;
326
327
  case 1000:
@@ -338,7 +339,6 @@ class Shard {
338
339
  break;
339
340
  case 1001:
340
341
  case 1006:
341
- case shared_1.ShardSocketCloseCodes.ZombiedConnection:
342
342
  case types_1.GatewayCloseCodes.UnknownError:
343
343
  case types_1.GatewayCloseCodes.DecodeError:
344
344
  case types_1.GatewayCloseCodes.NotAuthenticated:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "2.2.1-dev-13823891089.0",
3
+ "version": "2.2.1-dev-13826509766.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",