mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 15:00:00 +00:00
Update mute.ts
This commit is contained in:
parent
a9e0466e33
commit
8e568e092e
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ export const MuteAction = automodAction({
|
||||||
notify: tNullable(t.string),
|
notify: tNullable(t.string),
|
||||||
notifyChannel: tNullable(t.string),
|
notifyChannel: tNullable(t.string),
|
||||||
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_unmute: tNullable(t.union([t.boolean, t.array(t.string)])),
|
||||||
postInCaseLog: tNullable(t.boolean),
|
postInCaseLog: tNullable(t.boolean),
|
||||||
hide_case: tNullable(t.boolean),
|
hide_case: tNullable(t.boolean),
|
||||||
}),
|
}),
|
||||||
|
@ -39,7 +39,7 @@ export const MuteAction = automodAction({
|
||||||
const reason = actionConfig.reason || "Muted automatically";
|
const reason = actionConfig.reason || "Muted automatically";
|
||||||
const contactMethods = actionConfig.notify ? resolveActionContactMethods(pluginData, actionConfig) : undefined;
|
const contactMethods = actionConfig.notify ? resolveActionContactMethods(pluginData, actionConfig) : undefined;
|
||||||
const rolesToRemove = actionConfig.remove_roles_on_mute;
|
const rolesToRemove = actionConfig.remove_roles_on_mute;
|
||||||
const rolesToRestore = actionConfig.restore_roles_on_mute;
|
const rolesToRestore = actionConfig.restore_roles_on_unmute;
|
||||||
|
|
||||||
const caseArgs: Partial<CaseArgs> = {
|
const caseArgs: Partial<CaseArgs> = {
|
||||||
modId: pluginData.client.user.id,
|
modId: pluginData.client.user.id,
|
||||||
|
|
Loading…
Add table
Reference in a new issue