Skip to content

basegamepass

This file contains the BaseGamePass object, which represents a Roblox gamepass ID.

BaseGamePass

Bases: BaseItem

Represents a Roblox gamepass ID.

Attributes:

Name Type Description
id int

The gamepass ID.

Source code in roblox/bases/basegamepass.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class BaseGamePass(BaseItem):
    """
    Represents a Roblox gamepass ID.

    Attributes:
        id: The gamepass ID.
    """

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

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

__init__(client, gamepass_id)

Parameters:

Name Type Description Default
client Client

The Client this object belongs to.

required
gamepass_id int

The gamepass ID.

required
Source code in roblox/bases/basegamepass.py
24
25
26
27
28
29
30
31
32
def __init__(self, client: Client, gamepass_id: int):
    """
    Arguments:
        client: The Client this object belongs to.
        gamepass_id: The gamepass ID.
    """

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