diff options
Diffstat (limited to 'src/inhibitors/commands/guildDisabledCommand.ts')
| -rw-r--r-- | src/inhibitors/commands/guildDisabledCommand.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inhibitors/commands/guildDisabledCommand.ts b/src/inhibitors/commands/guildDisabledCommand.ts index b21e1ef..ee798e5 100644 --- a/src/inhibitors/commands/guildDisabledCommand.ts +++ b/src/inhibitors/commands/guildDisabledCommand.ts @@ -10,12 +10,13 @@ export default class DisabledGuildCommandInhibitor extends BushInhibitor { } public override async exec(message: BushMessage | BushSlashMessage, command: BushCommand): Promise<boolean> { - if (!message.guild || !message.guild) return; + if (!message.guild || !message.guild) return false; if (message.author.isOwner() || message.author.isSuperUser()) return false; // super users bypass guild disabled commands if ((await message.guild.getSetting('disabledCommands'))?.includes(command?.id)) { client.console.debug(`disabledGuildCommand blocked message.`); return true; } + return false; } } |
