From 14753bb4ce34bac1445066b0e611a03ed41c72a9 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 11 Sep 2021 21:20:30 +0300 Subject: [PATCH] Disable case creating on manual kick Discord has no "Kick" event. Instead, kicking a member just fires a regular "Member Leave" event. Because of this, all manual kick checks were being run every time a member leaves. Most importantly, audit logs were being fetched on *every member leave*. No. --- backend/src/plugins/ModActions/ModActionsPlugin.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/src/plugins/ModActions/ModActionsPlugin.ts b/backend/src/plugins/ModActions/ModActionsPlugin.ts index 4453efe8..452cabf6 100644 --- a/backend/src/plugins/ModActions/ModActionsPlugin.ts +++ b/backend/src/plugins/ModActions/ModActionsPlugin.ts @@ -126,12 +126,7 @@ export const ModActionsPlugin = zeppelinGuildPlugin()({ configSchema: ConfigSchema, defaultOptions, - events: [ - CreateBanCaseOnManualBanEvt, - CreateUnbanCaseOnManualUnbanEvt, - CreateKickCaseOnManualKickEvt, - PostAlertOnMemberJoinEvt, - ], + events: [CreateBanCaseOnManualBanEvt, CreateUnbanCaseOnManualUnbanEvt, PostAlertOnMemberJoinEvt], commands: [ UpdateCmd,