Skip to content

baserole

roblox.bases.baserole

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

BaseRole (BaseItem)

Represents a Roblox group role ID.

Attributes:

Name Type Description
id int

The role ID.

Source code in roblox/bases/baserole.py
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__(self, client: Client, role_id: int) special

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
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