【发布时间】:2020-06-13 23:06:15
【问题描述】:
我从 2 年前开始就一直在关注一个不和谐的机器人教程。如您所知,他们重新编写了 discord.py,经过大约一个小时的搜索,我发现有人遇到同样的问题但没有答案。我不断收到“AttributeError:'VoiceClient' 对象没有属性'create_ytdl_player'”。如果有人有任何东西,将不胜感激。
@client.command(pass_context = True)
async def play(ctx):
guild = ctx.message.guild
voice_client = ctx.guild.voice_client
player = await voice_client.create_ytdl_player("https://youtu.be/HKe1jFjojzA")
players[guild.id] = player
player.start()
【问题讨论】:
标签: audio discord discord.py audio-player discord.py-rewrite