From c75312329b9a1e135d4693d17458e542103076c4 Mon Sep 17 00:00:00 2001 From: Shoaib Sajid Date: Thu, 27 May 2021 16:51:28 +0500 Subject: [PATCH] Update logAndDetectMessageSpam.ts --- backend/src/plugins/Spam/util/logAndDetectMessageSpam.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Spam/util/logAndDetectMessageSpam.ts b/backend/src/plugins/Spam/util/logAndDetectMessageSpam.ts index d5cc946e..45a7598f 100644 --- a/backend/src/plugins/Spam/util/logAndDetectMessageSpam.ts +++ b/backend/src/plugins/Spam/util/logAndDetectMessageSpam.ts @@ -93,7 +93,7 @@ export async function logAndDetectMessageSpam( }, }, spamConfig.remove_roles_on_mute, - spamConfig.restore_roles_on_mute, + spamConfig.restore_roles_on_unmute, ); } catch (e) { if (e instanceof RecoverablePluginError && e.code === ERRORS.NO_MUTE_ROLE_IN_CONFIG) {