1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

[5.1.4] Fix voice chat bug

This commit is contained in:
Steffo 2019-12-05 22:28:24 +01:00
parent c245e84c43
commit b44b5fc587
3 changed files with 4 additions and 2 deletions

View file

@ -2,7 +2,7 @@
[tool.poetry] [tool.poetry]
name = "royalnet" name = "royalnet"
version = "5.1.3" version = "5.1.4"
description = "A multipurpose bot and web framework" description = "A multipurpose bot and web framework"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"] authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+" license = "AGPL-3.0+"

View file

@ -238,6 +238,8 @@ class DiscordSerf(Serf):
def find_voice_player(self, guild: "discord.Guild") -> Optional[VoicePlayer]: def find_voice_player(self, guild: "discord.Guild") -> Optional[VoicePlayer]:
for voice_player in self.voice_players: for voice_player in self.voice_players:
if not voice_player.voice_client.is_connected():
continue
if voice_player.voice_client.guild == guild: if voice_player.voice_client.guild == guild:
return voice_player return voice_player
else: else:

View file

@ -1 +1 @@
semantic = "5.1.3" semantic = "5.1.4"