try fix
This commit is contained in:
parent
8f4433dc9f
commit
432555e2fb
1 changed files with 0 additions and 4 deletions
|
@ -398,10 +398,6 @@ export class SlashClient {
|
||||||
if (this._decoratedSlashModules !== undefined) {
|
if (this._decoratedSlashModules !== undefined) {
|
||||||
this._decoratedSlashModules.forEach((e) => {
|
this._decoratedSlashModules.forEach((e) => {
|
||||||
const mod = ((this as unknown) as { [name: string]: SlashModule })[e]
|
const mod = ((this as unknown) as { [name: string]: SlashModule })[e]
|
||||||
if (!(mod instanceof SlashModule))
|
|
||||||
throw new Error(
|
|
||||||
'@slashModule can only be used on SlashModule instances'
|
|
||||||
)
|
|
||||||
this.modules.push(mod)
|
this.modules.push(mod)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue