Skip to content

baserobloxbadge

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

BaseRobloxBadge

Bases: 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
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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__(client, roblox_badge_id)

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
26
27
28
29
30
31
32
33
34
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