Answers for "how to check for reaction on a message discord.py"

9

discord.py add reaction to message

#1
message = ctx.send("text")
#2
message = channel.send("text")
#3
message = channel.fetch_message(messageid)
#add reaction to message
emoji = 'N{THUMBS UP SIGN}'
await message.add_reaction(emoji)
Posted by: Guest on September-27-2020
1

discord.py check if message has certain reaction

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
Posted by: Guest on May-30-2021

Code answers related to "how to check for reaction on a message discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language