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

The ClientSharedObject.

id int

The role ID.

Source code in roblox/bases/baserole.py
class BaseRole(BaseItem):
    """
    Represents a Roblox group role ID.

    Attributes:
        _shared: The ClientSharedObject.
        id: The role ID.
    """

    def __init__(self, shared: ClientSharedObject, role_id: int):
        """
        Arguments:
            shared: The ClientSharedObject.
            role_id: The role ID.
        """

        self._shared: ClientSharedObject = shared
        self.id: int = role_id

__init__(self, shared: ClientSharedObject, role_id: int) special

Parameters:

Name Type Description Default
shared ClientSharedObject

The ClientSharedObject.

required
role_id int

The role ID.

required
Source code in roblox/bases/baserole.py
def __init__(self, shared: ClientSharedObject, role_id: int):
    """
    Arguments:
        shared: The ClientSharedObject.
        role_id: The role ID.
    """

    self._shared: ClientSharedObject = shared
    self.id: int = role_id