I'm trying to make an 'accept/decline' embed with reactions, but I cannot get with which emoji the user reacted.
message = await guild.owner.send(embed=embed)
await message.add_reaction('✔')
await message.add_reaction('❌')
def check(reaction, user):
print(f"reacted")
return guild.owner == message.author and str(reaction.emoji) in ["✔", "❌"] and isinstance(message.channel, discord.DMChannel)
reaction, user = await bot.wait_for('reaction_add', timeout=1000.0, check=check)
if reaction.emoji == "✔":
print("tick")
elif reaction.emoji == "❌":
print("cross")
I get the
reacted
but I don't get anything in what refers to the cross
and tick
. Is there any way to get it?
Thanks in advance
print("code continued running")
after the function, but it only ran when I reacted with cross – Rafael Bradley