【发布时间】:2021-05-24 04:50:11
【问题描述】:
@client.command(pass_context=True)
async def join(ctx):
channel = ctx.message.author.voice.voice_channel
await client.join_voice_channel(channel)
我有这样的回应
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Member' object has no attribute 'voice_channel'
【问题讨论】:
标签: python-3.x discord discord.py bots