Skip to content

Commit

Permalink
fix(WebSocketManager): emit raw ws events again (#9502)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qjuh authored May 2, 2023
1 parent 1b7981e commit c429763
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ class WebSocketManager extends EventEmitter {
this._ws.on(WSWebSocketShardEvents.Debug, ({ message, shardId }) => this.debug(message, shardId));
this._ws.on(WSWebSocketShardEvents.Dispatch, ({ data, shardId }) => {
this.client.emit(Events.Raw, data, shardId);
this.emit(data.t, data.d, shardId);
const shard = this.shards.get(shardId);
this.handlePacket(data, shard);
if (shard.status === Status.WaitingForGuilds && WaitingForGuildEvents.includes(data.t)) {
Expand Down

0 comments on commit c429763

Please sign in to comment.