emoji = "" # some emoji as a string if any(reaction.emoji == emoji for reaction in message.reactions): # there is at least one reaction of the specified emoji
Here is what the above code is Doing:
1. It’s checking if there is at least one reaction of the specified emoji.
2. If there is, it will do something.
3. If there isn’t, it will do nothing.
You can also check if there is at least one reaction of a specific emoji, and if there is, do something.
Here’s an example:
message = await client.get_message(channel, id)
reaction = get(message.reactions, emoji=””) # some emoji as a string
if reaction and reaction.count >= 2:
# do something