From 8e568e092ec6aad44577918e0cb951dcaa195157 Mon Sep 17 00:00:00 2001 From: Shoaib Sajid Date: Thu, 27 May 2021 16:46:10 +0500 Subject: [PATCH] Update mute.ts --- backend/src/plugins/Automod/actions/mute.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/plugins/Automod/actions/mute.ts b/backend/src/plugins/Automod/actions/mute.ts index 798b8b10..ec8f0048 100644 --- a/backend/src/plugins/Automod/actions/mute.ts +++ b/backend/src/plugins/Automod/actions/mute.ts @@ -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 = { modId: pluginData.client.user.id,