Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
sawa-ko committed Oct 16, 2023
1 parent 44cb255 commit 248aeb6
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 @@ -33,8 +33,9 @@ export abstract class Listener extends Piece {
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 248aeb6

Please sign in to comment.