types: add missing shard types (v13) (#8192)

This commit is contained in:
Almeida
2022-06-29 23:35:51 +01:00
committed by GitHub
parent 125696fc79
commit 079973f1cf
3 changed files with 9 additions and 3 deletions

View File

@@ -466,6 +466,10 @@ class WebSocketShard extends EventEmitter {
// Set the status to reconnecting
this.status = Status.RECONNECTING;
// Finally, emit the INVALID_SESSION event
/**
* Emitted when the session has been invalidated.
* @event WebSocketShard#invalidSession
*/
this.emit(ShardEvents.INVALID_SESSION);
break;
case Opcodes.HEARTBEAT_ACK: