parent
6f6ba368b0
commit
354fe2a7be
@ -466,6 +466,10 @@ class WebSocketShard extends EventEmitter {
|
|||||||
// Set the status to reconnecting
|
// Set the status to reconnecting
|
||||||
this.status = Status.RECONNECTING;
|
this.status = Status.RECONNECTING;
|
||||||
// Finally, emit the INVALID_SESSION event
|
// Finally, emit the INVALID_SESSION event
|
||||||
|
/**
|
||||||
|
* Emitted when the session has been invalidated.
|
||||||
|
* @event WebSocketShard#invalidSession
|
||||||
|
*/
|
||||||
this.emit(ShardEvents.INVALID_SESSION);
|
this.emit(ShardEvents.INVALID_SESSION);
|
||||||
break;
|
break;
|
||||||
case Opcodes.HEARTBEAT_ACK:
|
case Opcodes.HEARTBEAT_ACK:
|
||||||
|
5
typings/index.d.ts
vendored
5
typings/index.d.ts
vendored
@ -2262,8 +2262,8 @@ export class SelectMenuInteraction<Cached extends CacheType = CacheType> extends
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ShardEventTypes {
|
export interface ShardEventTypes {
|
||||||
spawn: [child: ChildProcess];
|
spawn: [process: ChildProcess | Worker];
|
||||||
death: [child: ChildProcess];
|
death: [process: ChildProcess | Worker];
|
||||||
disconnect: [];
|
disconnect: [];
|
||||||
ready: [];
|
ready: [];
|
||||||
reconnecting: [];
|
reconnecting: [];
|
||||||
@ -2929,6 +2929,7 @@ export interface WebSocketShardEvents {
|
|||||||
ready: [];
|
ready: [];
|
||||||
resumed: [];
|
resumed: [];
|
||||||
invalidSession: [];
|
invalidSession: [];
|
||||||
|
destroyed: [];
|
||||||
close: [event: CloseEvent];
|
close: [event: CloseEvent];
|
||||||
allReady: [unavailableGuilds?: Set<Snowflake>];
|
allReady: [unavailableGuilds?: Set<Snowflake>];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user