Skip to content

shared

roblox.utilities.shared

This module contains the ClientSharedObject, which is shared between the client and all objects it generates.

ClientSharedObject

This object is shared between the client and all objects it generates.

Attributes:

Name Type Description
client Client

The main client.

requests Requests

The requests object.

url_generator URLGenerator

The URL generator object.

presence_provider Optional[PresenceProvider]

A provider for presence information.

thumbnail_provider Optional[ThumbnailProvider]

A provider for thumbnail information.

delivery_provider Optional[DeliveryProvider]

A provider for delivery information.

chat_provider Optional[ChatProvider]

A provider for chat information.

account_provider Optional[AccountProvider]

A provider for account information.

Source code in roblox/utilities/shared.py
class ClientSharedObject:
    """
    This object is shared between the client and all objects it generates.

    Attributes:
        client: The main client.
        requests: The requests object.
        url_generator: The URL generator object.
        presence_provider: A provider for presence information.
        thumbnail_provider: A provider for thumbnail information.
        delivery_provider: A provider for delivery information.
        chat_provider: A provider for chat information.
        account_provider:  A provider for account information.
    """

    def __init__(self, client: Client, requests: Requests, url_generator: URLGenerator):
        """
        Arguments:
            client: Method used for the request.
            requests: Everything and nothing.
            url_generator: Everything and nothing.
        """
        self.client: Client = client
        self.requests: Requests = requests
        self.url_generator: URLGenerator = url_generator
        self.presence_provider: Optional[PresenceProvider] = None
        self.thumbnail_provider: Optional[ThumbnailProvider] = None
        self.delivery_provider: Optional[DeliveryProvider] = None
        self.chat_provider: Optional[ChatProvider] = None
        self.account_provider: Optional[AccountProvider] = None

__init__(self, client: Client, requests: Requests, url_generator: URLGenerator) special

Parameters:

Name Type Description Default
client Client

Method used for the request.

required
requests Requests

Everything and nothing.

required
url_generator URLGenerator

Everything and nothing.

required
Source code in roblox/utilities/shared.py
def __init__(self, client: Client, requests: Requests, url_generator: URLGenerator):
    """
    Arguments:
        client: Method used for the request.
        requests: Everything and nothing.
        url_generator: Everything and nothing.
    """
    self.client: Client = client
    self.requests: Requests = requests
    self.url_generator: URLGenerator = url_generator
    self.presence_provider: Optional[PresenceProvider] = None
    self.thumbnail_provider: Optional[ThumbnailProvider] = None
    self.delivery_provider: Optional[DeliveryProvider] = None
    self.chat_provider: Optional[ChatProvider] = None
    self.account_provider: Optional[AccountProvider] = None