Fixed unnecessary voice states #274

This commit is contained in:
Sven Heidemann 2023-03-28 18:23:45 +02:00
parent 75ad07477a
commit 27a4c140e4

View File

@ -102,6 +102,9 @@ class BaseOnVoiceStateUpdateEvent(OnVoiceStateUpdateABC):
server = self._servers.get_server_by_discord_id(member.guild.id) server = self._servers.get_server_by_discord_id(member.guild.id)
try: try:
if before.channel == after.channel:
return
# join # join
if ( if (
before.channel is None before.channel is None