Skip to content

basegamepass

roblox.bases.basegamepass

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

BaseGamePass (BaseItem)

Represents a Roblox gamepass ID.

Attributes:

Name Type Description
id int

The gamepass ID.

Source code in roblox/bases/basegamepass.py
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__(self, client: Client, gamepass_id: int) special

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