mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Fix hide_case being required
This commit is contained in:
parent
9bae5eaea7
commit
ddaf3c98ee
4 changed files with 8 additions and 8 deletions
|
@ -22,7 +22,7 @@ export const BanAction = automodAction({
|
||||||
notifyChannel: tNullable(t.string),
|
notifyChannel: tNullable(t.string),
|
||||||
deleteMessageDays: tNullable(t.number),
|
deleteMessageDays: tNullable(t.number),
|
||||||
postInCaseLog: tNullable(t.boolean),
|
postInCaseLog: tNullable(t.boolean),
|
||||||
hide_case: t.boolean,
|
hide_case: tNullable(t.boolean),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
defaultConfig: {
|
defaultConfig: {
|
||||||
|
@ -41,7 +41,7 @@ export const BanAction = automodAction({
|
||||||
extraNotes: matchResult.fullSummary ? [matchResult.fullSummary] : [],
|
extraNotes: matchResult.fullSummary ? [matchResult.fullSummary] : [],
|
||||||
automatic: true,
|
automatic: true,
|
||||||
postInCaseLogOverride: actionConfig.postInCaseLog ?? undefined,
|
postInCaseLogOverride: actionConfig.postInCaseLog ?? undefined,
|
||||||
hide: actionConfig.hide_case,
|
hide: Boolean(actionConfig.hide_case),
|
||||||
};
|
};
|
||||||
|
|
||||||
const userIdsToBan = unique(contexts.map(c => c.user?.id).filter(nonNullish));
|
const userIdsToBan = unique(contexts.map(c => c.user?.id).filter(nonNullish));
|
||||||
|
|
|
@ -12,7 +12,7 @@ export const KickAction = automodAction({
|
||||||
notify: tNullable(t.string),
|
notify: tNullable(t.string),
|
||||||
notifyChannel: tNullable(t.string),
|
notifyChannel: tNullable(t.string),
|
||||||
postInCaseLog: tNullable(t.boolean),
|
postInCaseLog: tNullable(t.boolean),
|
||||||
hide_case: t.boolean,
|
hide_case: tNullable(t.boolean),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
defaultConfig: {
|
defaultConfig: {
|
||||||
|
@ -29,7 +29,7 @@ export const KickAction = automodAction({
|
||||||
extraNotes: matchResult.fullSummary ? [matchResult.fullSummary] : [],
|
extraNotes: matchResult.fullSummary ? [matchResult.fullSummary] : [],
|
||||||
automatic: true,
|
automatic: true,
|
||||||
postInCaseLogOverride: actionConfig.postInCaseLog ?? undefined,
|
postInCaseLogOverride: actionConfig.postInCaseLog ?? undefined,
|
||||||
hide: actionConfig.hide_case,
|
hide: Boolean(actionConfig.hide_case),
|
||||||
};
|
};
|
||||||
|
|
||||||
const userIdsToKick = unique(contexts.map(c => c.user?.id).filter(nonNullish));
|
const userIdsToKick = unique(contexts.map(c => c.user?.id).filter(nonNullish));
|
||||||
|
|
|
@ -26,7 +26,7 @@ export const MuteAction = automodAction({
|
||||||
remove_roles_on_mute: tNullable(t.union([t.boolean, t.array(t.string)])),
|
remove_roles_on_mute: tNullable(t.union([t.boolean, t.array(t.string)])),
|
||||||
restore_roles_on_mute: tNullable(t.union([t.boolean, t.array(t.string)])),
|
restore_roles_on_mute: tNullable(t.union([t.boolean, t.array(t.string)])),
|
||||||
postInCaseLog: tNullable(t.boolean),
|
postInCaseLog: tNullable(t.boolean),
|
||||||
hide_case: t.boolean,
|
hide_case: tNullable(t.boolean),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
defaultConfig: {
|
defaultConfig: {
|
||||||
|
@ -46,7 +46,7 @@ export const MuteAction = automodAction({
|
||||||
extraNotes: matchResult.fullSummary ? [matchResult.fullSummary] : [],
|
extraNotes: matchResult.fullSummary ? [matchResult.fullSummary] : [],
|
||||||
automatic: true,
|
automatic: true,
|
||||||
postInCaseLogOverride: actionConfig.postInCaseLog ?? undefined,
|
postInCaseLogOverride: actionConfig.postInCaseLog ?? undefined,
|
||||||
hide: actionConfig.hide_case,
|
hide: Boolean(actionConfig.hide_case),
|
||||||
};
|
};
|
||||||
|
|
||||||
const userIdsToMute = unique(contexts.map(c => c.user?.id).filter(nonNullish));
|
const userIdsToMute = unique(contexts.map(c => c.user?.id).filter(nonNullish));
|
||||||
|
|
|
@ -12,7 +12,7 @@ export const WarnAction = automodAction({
|
||||||
notify: tNullable(t.string),
|
notify: tNullable(t.string),
|
||||||
notifyChannel: tNullable(t.string),
|
notifyChannel: tNullable(t.string),
|
||||||
postInCaseLog: tNullable(t.boolean),
|
postInCaseLog: tNullable(t.boolean),
|
||||||
hide_case: t.boolean,
|
hide_case: tNullable(t.boolean),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
defaultConfig: {
|
defaultConfig: {
|
||||||
|
@ -29,7 +29,7 @@ export const WarnAction = automodAction({
|
||||||
extraNotes: matchResult.fullSummary ? [matchResult.fullSummary] : [],
|
extraNotes: matchResult.fullSummary ? [matchResult.fullSummary] : [],
|
||||||
automatic: true,
|
automatic: true,
|
||||||
postInCaseLogOverride: actionConfig.postInCaseLog ?? undefined,
|
postInCaseLogOverride: actionConfig.postInCaseLog ?? undefined,
|
||||||
hide: actionConfig.hide_case,
|
hide: Boolean(actionConfig.hide_case),
|
||||||
};
|
};
|
||||||
|
|
||||||
const userIdsToWarn = unique(contexts.map(c => c.user?.id).filter(nonNullish));
|
const userIdsToWarn = unique(contexts.map(c => c.user?.id).filter(nonNullish));
|
||||||
|
|
Loading…
Add table
Reference in a new issue