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 |
---|---|---|
_shared |
ClientSharedObject |
The ClientSharedObject. |
id |
int |
The gamepass ID. |
Source code in roblox/bases/basegamepass.py
class BaseGamePass(BaseItem):
"""
Represents a Roblox gamepass ID.
Attributes:
_shared: The ClientSharedObject.
id: The gamepass ID.
"""
def __init__(self, shared: ClientSharedObject, gamepass_id: int):
"""
Arguments:
shared: The ClientSharedObject.
gamepass_id: The gamepass ID.
"""
self._shared: ClientSharedObject = shared
self.id: int = gamepass_id
__init__(self, shared: ClientSharedObject, gamepass_id: int)
special
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
shared |
ClientSharedObject |
The ClientSharedObject. |
required |
gamepass_id |
int |
The gamepass ID. |
required |
Source code in roblox/bases/basegamepass.py
def __init__(self, shared: ClientSharedObject, gamepass_id: int):
"""
Arguments:
shared: The ClientSharedObject.
gamepass_id: The gamepass ID.
"""
self._shared: ClientSharedObject = shared
self.id: int = gamepass_id