Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Music : Bot is not connected to voice #34

Open
Abbhiishek opened this issue Nov 2, 2021 · 2 comments
Open

Music : Bot is not connected to voice #34

Abbhiishek opened this issue Nov 2, 2021 · 2 comments

Comments

@Abbhiishek
Copy link

Sometime its shows that bot is not connected to voice even after joining the voice channel.

@Salagean-Mircea-Codrin-Ioan

@client.command()
async def stop(ctx):
player = music.get_player(guild_id=ctx.guild.id)
await player.stop()
await ctx.send("Stopped")

@client.command()
async def leave(ctx):
player = music.get_player(guild_id=ctx.guild.id)
await player.stop()
await ctx.voice_client.disconnect()
await ctx.send("Stopped")

Use this

@Abbhiishek
Copy link
Author

Thanks that worked fine !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants