mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix voice dupe
This commit is contained in:
parent
955026b644
commit
8bc0d64c7e
1 changed files with 5 additions and 2 deletions
|
@ -28,10 +28,13 @@ RTL = "\N{leftwards black arrow}\U0000fe0f"
|
|||
|
||||
|
||||
async def _dc(client: discord.VoiceProtocol):
|
||||
if client.is_playing():
|
||||
client.stop()
|
||||
try:
|
||||
await client.disconnect()
|
||||
await client.disconnect(force=True)
|
||||
finally:
|
||||
client.cleanup()
|
||||
# client.cleanup()
|
||||
pass
|
||||
|
||||
|
||||
class Events(commands.Cog):
|
||||
|
|
Loading…
Reference in a new issue