Skip to content

basebadge

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

BaseBadge

Bases: BaseItem

Represents a Roblox badge ID.

Attributes:

Name Type Description
id int

The badge ID.

Source code in roblox/bases/basebadge.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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__(client, badge_id)

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
24
25
26
27
28
29
30
31
32
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