This commit is contained in:
DjDeveloperr 2021-01-01 13:41:44 +05:30
parent 8f4433dc9f
commit 432555e2fb

View file

@ -398,10 +398,6 @@ export class SlashClient {
if (this._decoratedSlashModules !== undefined) {
this._decoratedSlashModules.forEach((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)
})
}