DiscordUtils icon indicating copy to clipboard operation
DiscordUtils copied to clipboard

Music : Bot is not connected to voice

Open Abbhiishek opened this issue 3 years ago • 2 comments

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

Abbhiishek avatar Nov 02 '21 02:11 Abbhiishek

@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

SalageanMircea avatar Nov 02 '21 19:11 SalageanMircea

Thanks that worked fine !

Abbhiishek avatar Nov 03 '21 05:11 Abbhiishek