Merge pull request 'Fixed unnecessary voice states #274' (#275) from #274 into 1.0.1

Reviewed-on: sh-edraft.de/kd_discord_bot#275
Reviewed-by: Ebola-Chan <nick.jungmann@gmail.com>
Closes #274
This commit is contained in:
Sven Heidemann 2023-03-28 23:29:47 +02:00
commit b4a5fdb258

View File

@ -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