create_task = asyncio.async: SyntaxError: invalid syntax

后端 未结 2 1339
星月不相逢
星月不相逢 2020-12-03 07:50

I\'m creating a bot for Discord, and I just wrote this simple code:

import discord

TOKEN = \"token\"

client = discord.Client()


@client.event
async def on         


        
2条回答
  •  执念已碎
    2020-12-03 08:25

    You can manually edit the file and change that line from create_task = asyncio.async to create_task = getattr(asyncio, 'async')

    See more info here: https://github.com/Rapptz/discord.py/issues/1249

提交回复
热议问题