😊 On_user_join

😊 On_user_join

Added on version 23.1.0b0 - updated on version 23.3.1
on_user_join(self, user: User, position: Position | AnchorPosition) -> None Called when a user joins the room.

βš™οΈ Use cases

This method return the User class of the user that joined the room where the bot is deployed.
async def on_user_join(self, user: User, position: Position | AnchorPosition) -> None: print(f"{user.username} joined the room standing at {position}")
In this example the bot will print on the terminal the username of the user that joined the room and it’s position:
notion image
notion image

Built with Potion.so