Skip to content

baserobloxbadge

roblox.bases.baserobloxbadge

This file contains the BaseRobloxBadge object, which represents a Roblox roblox badge ID.

BaseRobloxBadge (BaseItem)

Represents a Roblox roblox badge ID.

Warning

This is not a badge! It is a roblox badge.

Attributes:

Name Type Description
_shared ClientSharedObject

The ClientSharedObject.

id int

The roblox badge ID.

Source code in roblox/bases/baserobloxbadge.py
class BaseRobloxBadge(BaseItem):
    """
    Represents a Roblox roblox badge ID.
    !!! warning
        This is not a badge! It is a **roblox badge**.

    Attributes:
        _shared: The ClientSharedObject.
        id: The roblox badge ID.
    """

    def __init__(self, shared: ClientSharedObject, roblox_badge_id: int):
        """
        Arguments:
            shared: The ClientSharedObject.
            roblox_badge_id: The roblox badge ID.
        """

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

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

Parameters:

Name Type Description Default
shared ClientSharedObject

The ClientSharedObject.

required
roblox_badge_id int

The roblox badge ID.

required
Source code in roblox/bases/baserobloxbadge.py
def __init__(self, shared: ClientSharedObject, roblox_badge_id: int):
    """
    Arguments:
        shared: The ClientSharedObject.
        roblox_badge_id: The roblox badge ID.
    """

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