πŸ‘― On_emote

πŸ‘― On_emote

Added on version 23.1.0b1
on_emote(self, user: User, emote_id: str, receiver: User | None) -> None Called when an emote is received.

βš™οΈ Use cases

This method can be use to get an emote_id, the User class of the sender and the User class of the receiver if there’s one.
async def on_emote(self, user: User, emote_id: str, receiver: User | None) -> None: print(f"{user.username} emoted: {emote_id}")
In this case we will print the username of the sender and the emote_id on the terminal:
notion image
notion image
Β 

Built with Potion.so