Get Started - Learn How To Make Your Bot!

Guides

Code Snippets

Get methods

Post methods

Web API

Useful links

List of all currently Free Items

List of Emotes

Highrise Bot SDK Changelog

Added on version 23.1.0b14

get_users(self, starts_after: str = "", ends_before: str = "", sort_order: SORT_OPTION = "desc", limit: int = 20, username: str = "",) -> GetPublicUsersResponse:

Fetch a list of users, can be filtered, ordered, and paginated.

Parameters:

Returns:

⚙️ Use cases

A simple example is that, when a user joins the room, you can make the bot print on the terminal the profile for the first 3 letters in the user’s name.

async def on_user_join(self, user: User) -> None:
        three_letters = user.username[:3]
        response = await self.webapi.get_users(username = three_letters,
                                               limit = 3, 
                                               sort_order = "asc", 
                                               starts_after = None, 
                                               ends_before = None)
        print(response)

Response:

GetPublicUsersResponse(
    users=[
        UserBasic(
            user_id="55b00250296db2db1a006a65",
            joined_at="None",
            username="Its",
            last_connect_at="2015-07-23T20:25:25.397000+00:00",
            last_activity_at="2015-07-23T20:25:25.397000+00:00",
            created_at="2015-07-22T20:51:29.630000+00:00",
            banned_until="None",
            banned=False,
        )
    ],
    total=1,
    first_id="55b00250296db2db1a006a65",
    last_id="55b00250296db2db1a006a65",
)