Skip to content

Commit

Permalink
AutoCommit: Bump Repository (Update Repository Files)
Browse files Browse the repository at this point in the history
  • Loading branch information
thealternatedev committed Oct 25, 2023
1 parent 4671110 commit e63fe23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/events/EventManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export class EventManager extends Loader<Event> {
public registerEvent(event: Event): boolean {
event.setRedactClient(this.redactClient);
this.events.set(event.getEventName(), event);
this.redactClient.getClient().on(event.getEventName(), (...args) => {
event.onEvent(...args);
});
return true;
}

Expand Down

0 comments on commit e63fe23

Please sign in to comment.