discord python add reaction code example
Example 1: discord.py add reaction to message
message = ctx.send("text")
message = channel.send("text")
message = channel.fetch_message(messageid)
emoji = '\N{THUMBS UP SIGN}'
await message.add_reaction(emoji)
Example 2: discord bot python on reaction
@client.event
async def on_reaction_add(reaction, user):
if not user.bot and reaction.message.content == "try me":
await reaction.remove(user)
await reaction.message.add_reaction(reaction.emoji)
Example 3: add reaction discord.py
await message.add_reaction(emoji)