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

The badge ID.

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

    Attributes:
        id: The badge ID.
    """

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

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

__init__(self, client: Client, badge_id: int) special

Parameters:

Name Type Description Default
client Client

The Client this object belongs to.

required
badge_id int

The badge ID.

required
Source code in roblox/bases/basebadge.py
def __init__(self, client: Client, badge_id: int):
    """
    Arguments:
        client: The Client this object belongs to.
        badge_id: The badge ID.
    """

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