Open Abbhiishek opened 3 years ago
@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
Thanks that worked fine !
Sometime its shows that bot is not connected to voice even after joining the voice channel.