diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inhibitors/checks/fatal.ts | 2 | ||||
-rw-r--r-- | src/inhibitors/checks/guildUnavailable.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/inhibitors/checks/fatal.ts b/src/inhibitors/checks/fatal.ts index 411357c..2521b2f 100644 --- a/src/inhibitors/checks/fatal.ts +++ b/src/inhibitors/checks/fatal.ts @@ -11,7 +11,7 @@ export default class FatalInhibitor extends BushInhibitor { } public override async exec(message: BushMessage | BushSlashMessage): Promise<boolean> { - if (message.author.isOwner()) return false; + 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]) { void client.console.verbose( diff --git a/src/inhibitors/checks/guildUnavailable.ts b/src/inhibitors/checks/guildUnavailable.ts index eb85fb7..a13944d 100644 --- a/src/inhibitors/checks/guildUnavailable.ts +++ b/src/inhibitors/checks/guildUnavailable.ts @@ -11,7 +11,7 @@ export default class GuildUnavailableInhibitor extends BushInhibitor { } public override async exec(message: BushMessage | BushSlashMessage): Promise<boolean> { - if (message.guild && !message.guild.available) { + if (message.inGuild() && !message.guild.available) { void client.console.verbose( 'guildUnavailable', `Blocked message with id <<${message.id}>> from <<${message.author.tag}>> in <<${message.guild.name}>>.` |