aboutsummaryrefslogtreecommitdiff
path: root/src/inhibitors/checks/guildUnavailable.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/inhibitors/checks/guildUnavailable.ts')
-rw-r--r--src/inhibitors/checks/guildUnavailable.ts2
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}>>.`