Skip to content

baserole

This file contains the BaseRole object, which represents a Roblox group role ID.

BaseRole

Bases: BaseItem

Represents a Roblox group role ID.

Attributes:

Name Type Description
id int

The role ID.

Source code in roblox/bases/baserole.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class BaseRole(BaseItem):
    """
    Represents a Roblox group role ID.

    Attributes:
        id: The role ID.
    """

    def __init__(self, client: Client, role_id: int):
        """
        Arguments:
            client: The Client this object belongs to.
            role_id: The role ID.
        """

        self._client: Client = client
        self.id: int = role_id

__init__(client, role_id)

Parameters:

Name Type Description Default
client Client

The Client this object belongs to.

required
role_id int

The role ID.

required
Source code in roblox/bases/baserole.py
24
25
26
27
28
29
30
31
32
def __init__(self, client: Client, role_id: int):
    """
    Arguments:
        client: The Client this object belongs to.
        role_id: The role ID.
    """

    self._client: Client = client
    self.id: int = role_id