Skip to content

Commit

Permalink
feat(Listener): add options option
Browse files Browse the repository at this point in the history
  • Loading branch information
SebestikCZ authored May 1, 2022
1 parent 937efee commit 41e5ce0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/structures/Listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class Listener<
public run: (...args: Array<any>) => any;
public owner?: string;
public reloading = false;
public options: ListenerOptions<WS, Event>;

public constructor(options: ListenerOptions<WS, Event>) {
if (this.run) options.run = this.run;
Expand All @@ -56,6 +57,7 @@ export class Listener<
this.ws = options.ws as WS;
this.fileName = options.fileName;
this.run = options.run;
this.options = this;

Listeners.register(this);
})
Expand Down

0 comments on commit 41e5ce0

Please sign in to comment.