3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Update mute.ts

This commit is contained in:
Shoaib Sajid 2021-05-27 16:46:10 +05:00 committed by GitHub
parent a9e0466e33
commit 8e568e092e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ export const MuteAction = automodAction({
notify: tNullable(t.string),
notifyChannel: tNullable(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),
hide_case: tNullable(t.boolean),
}),
@ -39,7 +39,7 @@ export const MuteAction = automodAction({
const reason = actionConfig.reason || "Muted automatically";
const contactMethods = actionConfig.notify ? resolveActionContactMethods(pluginData, actionConfig) : undefined;
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> = {
modId: pluginData.client.user.id,