diff options
Diffstat (limited to 'src/inhibitors/checks')
-rw-r--r-- | src/inhibitors/checks/fatal.ts | 5 | ||||
-rw-r--r-- | src/inhibitors/checks/guildUnavailable.ts | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/inhibitors/checks/fatal.ts b/src/inhibitors/checks/fatal.ts index 2521b2f..520754a 100644 --- a/src/inhibitors/checks/fatal.ts +++ b/src/inhibitors/checks/fatal.ts @@ -1,4 +1,5 @@ -import { BushInhibitor, type BushMessage, type BushSlashMessage } from '#lib'; +import { BushInhibitor, type SlashMessage } from '#lib'; +import { type Message } from 'discord.js'; export default class FatalInhibitor extends BushInhibitor { public constructor() { @@ -10,7 +11,7 @@ export default class FatalInhibitor extends BushInhibitor { }); } - public override async exec(message: BushMessage | BushSlashMessage): Promise<boolean> { + public override async exec(message: Message | SlashMessage): Promise<boolean> { if (client.isOwner(message.author)) return false; for (const property in client.cache.global) { if (!client.cache.global[property as keyof typeof client.cache.global]) { diff --git a/src/inhibitors/checks/guildUnavailable.ts b/src/inhibitors/checks/guildUnavailable.ts index a13944d..45ec0da 100644 --- a/src/inhibitors/checks/guildUnavailable.ts +++ b/src/inhibitors/checks/guildUnavailable.ts @@ -1,4 +1,5 @@ -import { BushInhibitor, type BushMessage, type BushSlashMessage } from '#lib'; +import { BushInhibitor, type SlashMessage } from '#lib'; +import { type Message } from 'discord.js'; export default class GuildUnavailableInhibitor extends BushInhibitor { public constructor() { @@ -10,7 +11,7 @@ export default class GuildUnavailableInhibitor extends BushInhibitor { }); } - public override async exec(message: BushMessage | BushSlashMessage): Promise<boolean> { + public override async exec(message: Message | SlashMessage): Promise<boolean> { if (message.inGuild() && !message.guild.available) { void client.console.verbose( 'guildUnavailable', |