From 8585686032767d90e155fdbf049c6901ee6a8b1f Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 20 Aug 2021 21:21:41 +0300 Subject: [PATCH] Another fix for voice move spam false positives --- backend/src/plugins/Spam/events/SpamVoiceEvt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Spam/events/SpamVoiceEvt.ts b/backend/src/plugins/Spam/events/SpamVoiceEvt.ts index 558216b9..ea354a98 100644 --- a/backend/src/plugins/Spam/events/SpamVoiceEvt.ts +++ b/backend/src/plugins/Spam/events/SpamVoiceEvt.ts @@ -9,7 +9,7 @@ export const SpamVoiceStateUpdateEvt = spamEvt({ if (!member) return; const channel = meta.args.newState.channel; if (!channel) return; - if (channel.id === meta.args.oldState?.id) return; + if (channel.id === meta.args.oldState?.channelId) return; const config = await meta.pluginData.config.getMatchingConfig({ member, channelId: channel.id }); const maxVoiceMoves = config.max_voice_moves;