Skip to content

plugins

This module contains classes intended to parse and deal with data from Roblox plugin information endpoints.

Plugin

Bases: BasePlugin

Represents a Roblox plugin. It is intended to parse data from https://develop.roblox.com/v1/plugins.

Attributes:

Name Type Description
id int

The ID of the plugin.

name str

The name of the plugin.

description str

The plugin's description.

comments_enabled bool

Whether comments are enabled or disabled.

version_id int

The plugin's current version ID.

created datetime

When the plugin was created.

updated datetime

When the plugin was updated.

Source code in roblox/plugins.py
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
class Plugin(BasePlugin):
    """
    Represents a Roblox plugin.
    It is intended to parse data from https://develop.roblox.com/v1/plugins.

    Attributes:
        id: The ID of the plugin.
        name: The name of the plugin.
        description: The plugin's description.
        comments_enabled: Whether comments are enabled or disabled.
        version_id: The plugin's current version ID.
        created: When the plugin was created.
        updated: When the plugin was updated.
    """

    def __init__(self, client: Client, data: dict):
        """
        Attributes:
            client: The Client object, which is passed to all objects this Client generates.
            data: data to make the magic happen.
        """
        super().__init__(client=client, plugin_id=data["id"])

        self.id: int = data["id"]
        self.name: str = data["name"]
        self.description: str = data["description"]
        self.comments_enabled: bool = data["commentsEnabled"]
        self.version_id: int = data["versionId"]
        self.created: datetime = parse(data["created"])
        self.updated: datetime = parse(data["updated"])

__init__(client, data)

Attributes:

Name Type Description
client

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

data

data to make the magic happen.

Source code in roblox/plugins.py
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
def __init__(self, client: Client, data: dict):
    """
    Attributes:
        client: The Client object, which is passed to all objects this Client generates.
        data: data to make the magic happen.
    """
    super().__init__(client=client, plugin_id=data["id"])

    self.id: int = data["id"]
    self.name: str = data["name"]
    self.description: str = data["description"]
    self.comments_enabled: bool = data["commentsEnabled"]
    self.version_id: int = data["versionId"]
    self.created: datetime = parse(data["created"])
    self.updated: datetime = parse(data["updated"])