Skip to content

Commit

Permalink
Always register READY/RESUMED handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Jul 20, 2024
1 parent abb142e commit 91c02ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/gateway/Dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export default class Dispatcher {
for (const [event, fn] of Object.entries(DefaultDispatchEvents)) {
this.register(event as DispatchEvent, fn as DispatchFunction);
}
} else {
this.register("READY", DefaultDispatchEvents.READY);
this.register("RESUMED", DefaultDispatchEvents.RESUMED);
}
}

Expand Down

0 comments on commit 91c02ef

Please sign in to comment.