我需要知道如何使不和谐机器人与语音通道断开连接。目前这是我必须加入语音频道的代码
@client.command(pass_context=True)
async def joinvoice(ctx):
#"""Joins your voice channel"""
author = ctx.message.author
voice_channel = author.voice_channel
await client.join_voice_channel(voice_channel)
Run Code Online (Sandbox Code Playgroud)
我需要从语音通道断开连接的代码