From 27a4c140e458a02276779251e7565b73851895d1 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 28 Mar 2023 18:23:45 +0200 Subject: [PATCH] Fixed unnecessary voice states #274 --- .../modules/base/events/base_on_voice_state_update_event.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kdb-bot/src/modules/base/events/base_on_voice_state_update_event.py b/kdb-bot/src/modules/base/events/base_on_voice_state_update_event.py index c2a25a32..52e0b551 100644 --- a/kdb-bot/src/modules/base/events/base_on_voice_state_update_event.py +++ b/kdb-bot/src/modules/base/events/base_on_voice_state_update_event.py @@ -102,6 +102,9 @@ class BaseOnVoiceStateUpdateEvent(OnVoiceStateUpdateABC): server = self._servers.get_server_by_discord_id(member.guild.id) try: + if before.channel == after.channel: + return + # join if ( before.channel is None