Answers for "how to add reactions to 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

add reaction discord.py

await message.add_reaction(emoji)
Posted by: Guest on March-10-2021
0

get reactions from message discord.py

#Get reactions from cached msg
cache_msg = discord.utils.get(client.cached_messages, id=msg.id)
n_players = await cache_msg.reactions[0].users().flatten()
n_players = n_players[1:]
Posted by: Guest on August-20-2021

Code answers related to "how to add reactions to a message discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language