#Edit messages

1 messages · Page 1 of 1 (latest)

sharp spear
#

I want to respond with a message if the slash command is used, and i want that the bot edits the response message to something else after a bit of time

Here is my Problem simplyfied:

await ctx.respond(f"{user.mention} killed himself for {duration} !")
    await asyncio.sleep(10)
    await ctx.respond(f"{user.mention} is alive !")       <---- instead of responding i want to edit the old message of the bot
sharp spear
# fleet marsh `ctx.edit`

now i get this error message:
Interaction.edit_original_message() takes 1 positional argument but 2 were given

fleet marsh
#

await ctx.edit(content = f"{user.mention} is alive !")

sharp spear
#

thx

fleet marsh
#

.solved

dense belfryBOT
#

Done with your help thread?

Please close your own help thread by using </close:1009144375709814897> with @past saddle.