Skip to content

partialuniverse

This file contains partial objects related to Roblox universes.

ChatPartialUniverse

Bases: BaseUniverse

Represents a partial universe in the context of a chat conversation.

Attributes:

Name Type Description
_data

The data we get back from the endpoint.

_client Client

The client object, which is passed to all objects this client generates.

id int

The universe ID.

root_place BasePlace

The universe's root place.

Source code in roblox/partials/partialuniverse.py
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
class ChatPartialUniverse(BaseUniverse):
    """
    Represents a partial universe in the context of a chat conversation.

    Attributes:
        _data: The data we get back from the endpoint.
        _client: The client object, which is passed to all objects this client generates.
        id: The universe ID.
        root_place: The universe's root place.
    """

    def __init__(self, client: Client, data: dict):
        """
        Arguments:
            client: The ClientSharedObject.
            data: The raw data.
        """
        self._client: Client = client

        self.id: int = data["universeId"]

        super().__init__(client=client, universe_id=self.id)

        self.root_place: BasePlace = BasePlace(client=client, place_id=data["rootPlaceId"])

__init__(client, data)

Parameters:

Name Type Description Default
client Client

The ClientSharedObject.

required
data dict

The raw data.

required
Source code in roblox/partials/partialuniverse.py
54
55
56
57
58
59
60
61
62
63
64
65
66
def __init__(self, client: Client, data: dict):
    """
    Arguments:
        client: The ClientSharedObject.
        data: The raw data.
    """
    self._client: Client = client

    self.id: int = data["universeId"]

    super().__init__(client=client, universe_id=self.id)

    self.root_place: BasePlace = BasePlace(client=client, place_id=data["rootPlaceId"])

PartialUniverse

Bases: BaseUniverse

Represents partial universe information.

Attributes:. _client: The Client object, which is passed to all objects this Client generates. id: The universe ID. name: The name of the universe. root_place: The universe's root place.

Source code in roblox/partials/partialuniverse.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class PartialUniverse(BaseUniverse):
    """
    Represents partial universe information.

    Attributes:.
        _client: The Client object, which is passed to all objects this Client generates.
        id: The universe ID.
        name: The name of the universe.
        root_place: The universe's root place.
    """

    def __init__(self, client: Client, data: dict):
        """
        Arguments:
            client: The Client.
            data: The raw data.
        """
        self._client: Client = client

        self.id: int = data["id"]

        super().__init__(client=client, universe_id=self.id)

        self.name: str = data["name"]
        self.root_place: BasePlace = BasePlace(client=client, place_id=data["rootPlaceId"])

__init__(client, data)

Parameters:

Name Type Description Default
client Client

The Client.

required
data dict

The raw data.

required
Source code in roblox/partials/partialuniverse.py
27
28
29
30
31
32
33
34
35
36
37
38
39
40
def __init__(self, client: Client, data: dict):
    """
    Arguments:
        client: The Client.
        data: The raw data.
    """
    self._client: Client = client

    self.id: int = data["id"]

    super().__init__(client=client, universe_id=self.id)

    self.name: str = data["name"]
    self.root_place: BasePlace = BasePlace(client=client, place_id=data["rootPlaceId"])