Skip to content

basejob

This file contains the BaseJob object, which represents a Roblox job ID.

BaseJob

Bases: BaseItem

Represents Roblox job ID.

Job IDs are UUIDs that represent a single game server instance. Learn more on the Developer Hub here.

Attributes:

Name Type Description
id str

The job ID.

Source code in roblox/bases/basejob.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class BaseJob(BaseItem):
    """
    Represents Roblox job ID.

    Job IDs are UUIDs that represent a single game server instance.
    Learn more on the Developer Hub [here](https://developer.roblox.com/en-us/api-reference/property/DataModel/JobId).

    Attributes:
        id: The job ID.
    """

    def __init__(self, client: Client, job_id: str):
        """
        Arguments:
            client: The Client this object belongs to.
            job_id: The job ID.
        """

        self._client: Client = client
        self.id: str = job_id

__init__(client, job_id)

Parameters:

Name Type Description Default
client Client

The Client this object belongs to.

required
job_id str

The job ID.

required
Source code in roblox/bases/basejob.py
27
28
29
30
31
32
33
34
35
def __init__(self, client: Client, job_id: str):
    """
    Arguments:
        client: The Client this object belongs to.
        job_id: The job ID.
    """

    self._client: Client = client
    self.id: str = job_id