diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-28 14:58:09 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-28 14:58:09 -0500 |
commit | 424cf99af8af0d5320590444aecd8deee8ff90b6 (patch) | |
tree | 98fa0b38df5381b348422ccf6a4b0b91483da09d /src/inhibitors/checks/guildUnavailable.ts | |
parent | 5f3a7dfbedee3dd4ec7a91bf7beb593687fdc021 (diff) | |
download | tanzanite-424cf99af8af0d5320590444aecd8deee8ff90b6.tar.gz tanzanite-424cf99af8af0d5320590444aecd8deee8ff90b6.tar.bz2 tanzanite-424cf99af8af0d5320590444aecd8deee8ff90b6.zip |
fix: more errors
Diffstat (limited to 'src/inhibitors/checks/guildUnavailable.ts')
-rw-r--r-- | src/inhibitors/checks/guildUnavailable.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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}>>.` |