我的 discord.py 没有加入语音频道

时间:2021-05-09 02:36:40

标签: python discord discord.py

谁能帮帮我,我是这样说的:

@bot.command(pass_context=True)
async def join(ctx):
    author = ctx.message.author
    channel = author.voice_channel
    await bot.join_voice_channel(channel)

1 个答案:

答案 0 :(得分:1)

改用这个

@bot.command(pass_context=True)
async def join(ctx):
    channel = ctx.author.voice.channel
    await channel.connect()

reference