Question:
How can I perform actions after a while? Let's say: if 60 seconds have passed, then the message is deleted, and something is also deleted in the database.Possible Solutions:
Make a message delete in the same slash_command, and then use the listener to catch the deleted message and change the database...If you have better options, please let me know.
Possible Solution Example:
@bot.slash_commands()
async def sell(ctx):
ctx.send("Bla bla bla", delete_after=60)
@bot.event
async def on_message_delete():
...