From 424cf99af8af0d5320590444aecd8deee8ff90b6 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 28 Feb 2022 14:58:09 -0500 Subject: fix: more errors --- src/inhibitors/checks/guildUnavailable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inhibitors/checks/guildUnavailable.ts') 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 { - 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}>>.` -- cgit