Answers for "discord bot detect reactions to message python"

1

discord bot python on reaction

@client.event
async def on_reaction_add(reaction, user):
    # Steals your reaction by removing the original and adding it's own
    if not user.bot and reaction.message.content == "try me":
        await reaction.remove(user)
        await reaction.message.add_reaction(reaction.emoji)
Posted by: Guest on January-24-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 "discord bot detect reactions to message python"

Python Answers by Framework

Browse Popular Code Answers by Language