fix slash module decorators
This commit is contained in:
parent
962d90aca8
commit
66031d56c2
1 changed files with 2 additions and 3 deletions
|
@ -3,11 +3,10 @@ import type { SlashCommandHandler } from './slashClient.ts'
|
||||||
export class SlashModule {
|
export class SlashModule {
|
||||||
name: string = ''
|
name: string = ''
|
||||||
commands: SlashCommandHandler[] = []
|
commands: SlashCommandHandler[] = []
|
||||||
_decoratedSlash?: SlashCommandHandler[]
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
if (this._decoratedSlash !== undefined) {
|
if ((this as any)._decoratedSlash !== undefined) {
|
||||||
this.commands = this._decoratedSlash
|
;(this as any).commands = (this as any)._decoratedSlash
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue