Skip to content

Commit

Permalink
fix: fixed types for Node 20 types
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Oct 5, 2023
1 parent e913f07 commit de8e8d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/structures/Listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ export abstract class Listener<E extends keyof ClientEvents | symbol = '', O ext
this.emitter =
typeof options.emitter === 'undefined'
? this.container.client
: (typeof options.emitter === 'string' ? (Reflect.get(this.container.client, options.emitter) as EventEmitter) : options.emitter) ??
null;
: (typeof options.emitter === 'string'
? (Reflect.get(this.container.client, options.emitter) as EventEmitter)
: (options.emitter as EventEmitter)) ?? null;
this.event = options.event ?? this.name;
this.once = options.once ?? false;

Expand Down

0 comments on commit de8e8d0

Please sign in to comment.