Fix voice dupe

This commit is contained in:
nexy7574 2023-03-22 16:51:54 +00:00
parent 955026b644
commit 8bc0d64c7e

View file

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