baseinstance
roblox.bases.baseinstance
¶
This file contains the BaseInstance object, which represents a Roblox instance ID.
BaseInstance (BaseItem)
¶
Represents a Roblox instance ID. Instance IDs represent the ownership of a single Roblox item.
Attributes:
Name | Type | Description |
---|---|---|
id |
int |
The instance ID. |
Source code in roblox/bases/baseinstance.py
class BaseInstance(BaseItem):
"""
Represents a Roblox instance ID.
Instance IDs represent the ownership of a single Roblox item.
Attributes:
id: The instance ID.
"""
def __init__(self, client: Client, instance_id: int):
"""
Arguments:
client: The Client this object belongs to.
instance_id: The asset instance ID.
"""
self._client: Client = client
self.id: int = instance_id
__init__(self, client: Client, instance_id: int)
special
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
client |
Client |
The Client this object belongs to. |
required |
instance_id |
int |
The asset instance ID. |
required |
Source code in roblox/bases/baseinstance.py
def __init__(self, client: Client, instance_id: int):
"""
Arguments:
client: The Client this object belongs to.
instance_id: The asset instance ID.
"""
self._client: Client = client
self.id: int = instance_id