diff --git a/backend/src/plugins/Automod/triggers/joinVoiceChannel.ts b/backend/src/plugins/Automod/triggers/joinVoiceChannel.ts index 9064fb45..16723584 100644 --- a/backend/src/plugins/Automod/triggers/joinVoiceChannel.ts +++ b/backend/src/plugins/Automod/triggers/joinVoiceChannel.ts @@ -13,7 +13,7 @@ export const JoinVoiceChannelTrigger = automodTrigger()( async match({ triggerConfig, context }) { const matchedChannelId = context.voiceChannel?.joined?.id; - if (!context.member || !matchedChannelId) { + if (!context.member || !matchedChannelId || context.voiceChannel?.left) { return; } diff --git a/backend/src/plugins/Automod/triggers/leaveVoiceChannel.ts b/backend/src/plugins/Automod/triggers/leaveVoiceChannel.ts index d4125d6f..4c8d2e09 100644 --- a/backend/src/plugins/Automod/triggers/leaveVoiceChannel.ts +++ b/backend/src/plugins/Automod/triggers/leaveVoiceChannel.ts @@ -13,7 +13,7 @@ export const LeaveVoiceChannelTrigger = automodTrigger( async match({ triggerConfig, context }) { const matchedChannelId = context.voiceChannel?.left?.id; - if (!context.member || !matchedChannelId) { + if (!context.member || !matchedChannelId || context.voiceChannel?.joined) { return; }