Şu anlık bir çözüm buldum ama tam istediğim gibi değil. Zaten bu aklımdaydı galiba ama bunu kullanmaya karar verdim.
Kanalda durmasını istiyordum durdurduktan sonra ama o şekildede bir çözüm bulamadım bende kanaldan çıkması için düzenledim:
[CODE lang="python" title="Durdur Komutu"] @commands.command(name='durdur')
async def _stop(self, ctx: commands.Context):
"""Stops playing song and clears the queue."""
if not ctx.author.voice or not ctx.author.voice.channel:
return await ctx.send('Sesli bir kanala bağlanman lazım
')
if ctx.voice_client:
if ctx.voice_client.channel != ctx.author.voice.channel:
return await ctx.send('Bot şu anda başka birisine hizmet ediyor.')
server = ctx.message.guild.voice_client
await server.disconnect()
ctx.voice_state.songs.clear()
ctx.voice_state.voice.stop()
await ctx.message.add_reaction('⏹')[/CODE]