From 41e5ce0a9bbe51b423ac0a36029f02d41f9b040e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ebest=C3=AD=C4=8Dek?= <44745014+SebestikCZ@users.noreply.github.com> Date: Sun, 1 May 2022 19:26:25 +0200 Subject: [PATCH] feat(Listener): add options option --- src/lib/structures/Listener.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/structures/Listener.ts b/src/lib/structures/Listener.ts index 80fd4ddab..d1dcbdb3f 100644 --- a/src/lib/structures/Listener.ts +++ b/src/lib/structures/Listener.ts @@ -43,6 +43,7 @@ export class Listener< public run: (...args: Array) => any; public owner?: string; public reloading = false; + public options: ListenerOptions; public constructor(options: ListenerOptions) { if (this.run) options.run = this.run; @@ -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); })