📌  相关文章
📜  python discord bot 加入语音频道 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:02.943000             🧑  作者: Mango

代码示例1
@bot.command()
async def join(ctx):
    channel = ctx.author.voice.channel
    await channel.connect()
@bot.command()
async def leave(ctx):
    await ctx.voice_client.disconnect()