我希望我的机器人在一段时间后发送一条消息并再次处理它我已经尝试过什么:
@client.command()
async def test(ctx):
await ctx.send ('content')
await asyncio.sleep(3)
await message.edit(content="newcontent")
错误信息:
AttributeError: module 'discord.message' has no attribute 'edit'
我使用以下内容:
- Python版本:3.7.4
- discord.py 版本 1.6.0