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
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:
        id: The roblox badge ID.
    """

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

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

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

Parameters:

Name Type Description Default
client Client

The Client this object belongs to.

required
roblox_badge_id int

The roblox badge ID.

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

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