await message.add_reaction(delete_emoji) | await message.add_reaction(delete_emoji) | ||||
def check(r, u): | def check(r, u): | ||||
return str(r) == str(delete_emoji) and u == ctx.author and r.message == message | |||||
return str(r) == str(delete_emoji) and u == ctx.author and r.message.id == message.id | |||||
try: | try: | ||||
await bot.wait_for("reaction_add", timeout=timeout, check=check) | await bot.wait_for("reaction_add", timeout=timeout, check=check) |