[英]My discord.py is not joining voice channels
有人可以幫助我嗎,我這樣說:
@bot.command(pass_context=True)
async def join(ctx):
author = ctx.message.author
channel = author.voice_channel
await bot.join_voice_channel(channel)
改用這個
@bot.command(pass_context=True)
async def join(ctx):
channel = ctx.author.voice.channel
await channel.connect()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.