aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/moderation/modlog.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py
index ffdd5b79f..00aba9872 100644
--- a/bot/cogs/moderation/modlog.py
+++ b/bot/cogs/moderation/modlog.py
@@ -759,7 +759,10 @@ class ModLog(Cog, name="ModLog"):
after: discord.VoiceState
) -> None:
"""Log member voice state changes to the voice log channel."""
- if member.guild.id != GuildConstant.id:
+ if (
+ member.guild.id != GuildConstant.id
+ or (before.channel and before.channel.id in GuildConstant.ignored)
+ ):
return
if member.id in self._ignored[Event.voice_state_update]: