πŸ™€ On_reaction

πŸ™€ On_reaction

Added on version 23.1.0b2
on_reaction(self, user: User, reaction: Reaction, receiver: User) -> None Called when a reaction is received.

βš™οΈ Use cases

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:
notion image
notion image
Β 

Built with Potion.so