小编Cen*_*red的帖子

(Python) Discord bot 与语音聊天断开连接

我需要知道如何使不和谐机器人与语音通道断开连接。目前这是我必须加入语音频道的代码

@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)

我需要从语音通道断开连接的代码

python discord discord.py

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

discord ×1

discord.py ×1

python ×1