📌  相关文章
📜  discord.py 使机器人加入 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:33.519000             🧑  作者: 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()