From 937efeeb8e95ae2685244f6234eaf37a5d5b22d1 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:18:50 +0200 Subject: [PATCH] feat(Component): add options option --- src/lib/structures/Component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/structures/Component.ts b/src/lib/structures/Component.ts index afea25138..f1db6f9ee 100644 --- a/src/lib/structures/Component.ts +++ b/src/lib/structures/Component.ts @@ -63,6 +63,7 @@ export class Component { public client: GClient; public name: string; public type: Array; + public options: ComponentOptions; public inhibitors: ComponentInhibitors = []; public guildId?: string; private static defaults: Partial; @@ -90,6 +91,7 @@ export class Component { this.run = options.run || Component.defaults?.run; this.onError = options.onError || Component.defaults?.onError; this.autoDefer = options.autoDefer || Component.defaults?.autoDefer; + this.options = this; Components.register(this); })