mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
[5.1.4] Fix voice chat bug
This commit is contained in:
parent
c245e84c43
commit
b44b5fc587
3 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
[tool.poetry]
|
||||
name = "royalnet"
|
||||
version = "5.1.3"
|
||||
version = "5.1.4"
|
||||
description = "A multipurpose bot and web framework"
|
||||
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
|
||||
license = "AGPL-3.0+"
|
||||
|
|
|
@ -238,6 +238,8 @@ class DiscordSerf(Serf):
|
|||
|
||||
def find_voice_player(self, guild: "discord.Guild") -> Optional[VoicePlayer]:
|
||||
for voice_player in self.voice_players:
|
||||
if not voice_player.voice_client.is_connected():
|
||||
continue
|
||||
if voice_player.voice_client.guild == guild:
|
||||
return voice_player
|
||||
else:
|
||||
|
|
|
@ -1 +1 @@
|
|||
semantic = "5.1.3"
|
||||
semantic = "5.1.4"
|
||||
|
|
Loading…
Reference in a new issue