I want my bot to send a message and process it again after a certain period of time What I've already tried:
@client.command() async def test(ctx): await ctx.send ('content') await asyncio.sleep(3) await message.edit(content="newcontent")
The error message:
AttributeError: module 'discord.message' has no attribute 'edit'
I use the following:
You would have to define message first.
message
@client.command() async def test(ctx): message = await ctx.send("content") await asyncio.sleep(3) await message.edit(content="newcontent")
2.1m questions
2.1m answers
60 comments
57.0k users