From 66031d56c2551e7fa8c0bd1770ba0c4aea01ad2e Mon Sep 17 00:00:00 2001 From: DjDeveloper <43033058+DjDeveloperr@users.noreply.github.com> Date: Sat, 24 Apr 2021 14:32:40 +0530 Subject: [PATCH] fix slash module decorators --- src/interactions/slashModule.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/interactions/slashModule.ts b/src/interactions/slashModule.ts index 2ba0fe3..1c61c65 100644 --- a/src/interactions/slashModule.ts +++ b/src/interactions/slashModule.ts @@ -3,11 +3,10 @@ import type { SlashCommandHandler } from './slashClient.ts' export class SlashModule { name: string = '' commands: SlashCommandHandler[] = [] - _decoratedSlash?: SlashCommandHandler[] constructor() { - if (this._decoratedSlash !== undefined) { - this.commands = this._decoratedSlash + if ((this as any)._decoratedSlash !== undefined) { + ;(this as any).commands = (this as any)._decoratedSlash } }