Skip to content

basejob

roblox.bases.basejob

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

BaseJob (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
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__(self, client: Client, job_id: str) special

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
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