Skip to content

basebadge

roblox.bases.basebadge

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

BaseBadge (BaseItem)

Represents a Roblox badge ID.

Attributes:

Name Type Description
_shared ClientSharedObject

The ClientSharedObject.

id int

The badge ID.

Source code in roblox/bases/basebadge.py
class BaseBadge(BaseItem):
    """
    Represents a Roblox badge ID.

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

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

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

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

Parameters:

Name Type Description Default
shared ClientSharedObject

The ClientSharedObject.

required
badge_id int

The badge ID.

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

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