Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add reaction by message id in discord.py

#react command
@bot.command()
@commands.has_permissions(manage_messages=True)
async def react(ctx,emoji,message_id):
  channel = ctx.channel
  msg = await channel.fetch_message(message_id)
  await msg.add_reaction(emoji)
Source by github.com #
 
PREVIOUS NEXT
Tagged: #add #reaction #message #id
ADD COMMENT
Topic
Name
2+6 =