Get Started - Learn How To Make Your Bot!
List of all currently Free Items
Added on version 23.1.0b2
on_reaction(self, user: User, reaction: Reaction, receiver: User) -> None
Called when a reaction is received.
This method returns the Reaction class, the User class from the sender and the User class from the Receiver on the room.
async def on_reaction(self, user: User, reaction: Reaction, receiver: User) -> None:
print(f"{user.username} sent the reaction {reaction} to {receiver.username}")
In this case the bot will print in the terminal the sender’s username, the reaction_id and the receiver’s username: