Skip to content

baseinstance

This file contains the BaseInstance object, which represents a Roblox instance ID.

BaseInstance

Bases: 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
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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__(client, instance_id)

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