Skip to content Skip to sidebar Skip to footer

How Do You Have A Discord Bot Remove A User Reaction To A Message In Discord.py?

I'm using an @client.event and using async def on_raw_reaction_add(payload): to read Discord reaction events. I need to be able to delete a user reaction when they fail one of the

Solution 1:

You can use either Message.remove_reaction or Reaction.remove.

A Reaction object represents a specific emoji reaction to a Message, so if the Reaction object you have is not for the emoji reaction that you want to remove, using Reaction.remove will attempt to remove the wrong emoji reaction.

Post a Comment for "How Do You Have A Discord Bot Remove A User Reaction To A Message In Discord.py?"