Error on music discord bot in python 'NoneType' object has no attribute 'create_ytdl_player'
- 阅读更多 关于 Error on music discord bot in python 'NoneType' object has no attribute 'create_ytdl_player'
问题 When ever i run this code: @client.command(pass_context=True) async def ranjaplay(ctx, url): server = ctx.message.server voice_client = client.voice_client_in(server) player = await voice_client.create_ytdl_player(url) players[server.id] = player player.start() it returns with this error: Traceback (most recent call last): File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site- packages\discord\ext\commands\bot.py", line 846, in process_commands yield from command.invoke(ctx)