File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
1818 type GatewayIdentifyData ,
1919 type GatewayReceivePayload ,
2020 type GatewaySendPayload ,
21+ type GatewayReadyDispatchData ,
2122} from 'discord-api-types/v10' ;
2223import { WebSocket , type RawData } from 'ws' ;
2324import type { Inflate } from 'zlib-sync' ;
@@ -52,7 +53,7 @@ export enum WebSocketShardDestroyRecovery {
5253export type WebSocketShardEventsMap = {
5354 [ WebSocketShardEvents . Debug ] : [ payload : { message : string } ] ;
5455 [ WebSocketShardEvents . Hello ] : [ ] ;
55- [ WebSocketShardEvents . Ready ] : [ ] ;
56+ [ WebSocketShardEvents . Ready ] : [ payload : { data : GatewayReadyDispatchData } ] ;
5657 [ WebSocketShardEvents . Resumed ] : [ ] ;
5758 [ WebSocketShardEvents . Dispatch ] : [ payload : { data : GatewayDispatchPayload } ] ;
5859} ;
@@ -393,7 +394,7 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
393394 // eslint-disable-next-line sonarjs/no-nested-switch
394395 switch ( payload . t ) {
395396 case GatewayDispatchEvents . Ready : {
396- this . emit ( WebSocketShardEvents . Ready ) ;
397+ this . emit ( WebSocketShardEvents . Ready , { data : payload . d } ) ;
397398
398399 this . session ??= {
399400 sequence : payload . s ,
You can’t perform that action at this time.
0 commit comments