Skip to content

partialrole

This file contains partial objects related to Roblox group roles.

PartialRole

Bases: BaseRole

Represents partial group role information.

Attributes:

Name Type Description
_client Client

The Client object.

id int

The role's ID.

name str

The role's name.

rank int

The role's rank ID.

Source code in roblox/partials/partialrole.py
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class PartialRole(BaseRole):
    """
    Represents partial group role information.

    Attributes:
        _client: The Client object.
        id: The role's ID.
        name: The role's name.
        rank: The role's rank ID.
    """

    def __init__(self, client: Client, data: dict):
        self._client: Client = client

        self.id: int = data["id"]
        super().__init__(client=self._client, role_id=self.id)
        self.name: str = data["name"]
        self.rank: int = data["rank"]