mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +00:00
Add postInCaseLog option for mod action Automod actions; allow forcing case log even when log_automatic_actions is disabled
This commit is contained in:
parent
aa43f05173
commit
45e81848a7
7 changed files with 18 additions and 13 deletions
|
@ -47,7 +47,10 @@ export async function createCaseNote(pluginData: GuildPluginData<CasesPluginType
|
|||
}
|
||||
|
||||
const modConfig = pluginData.config.getForUser(mod);
|
||||
if ((!args.automatic || modConfig.log_automatic_actions) && args.postInCaseLogOverride !== false) {
|
||||
if (
|
||||
args.postInCaseLogOverride === true ||
|
||||
((!args.automatic || modConfig.log_automatic_actions) && args.postInCaseLogOverride !== false)
|
||||
) {
|
||||
await postCaseToCaseLogChannel(pluginData, theCase.id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue