Skip to main content

RobloxApiClass

Represents a specific Roblox class.

Functions

new

RobloxApiClass.new(
robloxApiDumpRobloxApiDump,
datatable
) → RobloxApiClass

Constructs a new RobloxApiClass. See RobloxApiDump.PromiseClass to actually construct this class.

GetRawData

RobloxApiClass:GetRawData() → table

Retrieves the raw class data

GetClassName

RobloxApiClass:GetClassName() → string

Gets the class name.

GetMemberCategory

RobloxApiClass:GetMemberCategory() → string?

Gets the class category.

PromiseSuperClass

RobloxApiClass:PromiseSuperClass() → Promise<RobloxApiClass>

Retrieves the super class, or rejects.

PromiseIsA

RobloxApiClass:PromiseIsA(classNamestring) → Promise<boolean>

Returns a promise that resolves whether this class is of a specific type.

PromiseIsDescendantOf

RobloxApiClass:PromiseIsDescendantOf(classNamestring) → Promise<boolean>

Returns a promise that resolves whether this class is a descendant of another specific class.

PromiseAllSuperClasses

RobloxApiClass:PromiseAllSuperClasses() → Promise<{RobloxApiClass}>

Returns a promise that resolves to all super classes.

GetSuperClassName

RobloxApiClass:GetSuperClassName() → string?

Returns the super class name

HasSuperClass

RobloxApiClass:HasSuperClass() → boolean

Returns whether the class has a super class

PromiseMembers

RobloxApiClass:PromiseMembers() → Promise<{RobloxApiMember}>

Retrieves all class members (events, properties, callbacks, functions).

PromiseProperties

RobloxApiClass:PromiseProperties() → Promise<{RobloxApiMember}>

Gets all class properties.

PromiseEvents

RobloxApiClass:PromiseEvents() → Promise<{RobloxApiMember}>

Gets all class events.

PromiseFunctions

RobloxApiClass:PromiseFunctions() → Promise<{RobloxApiMember}>

Gets all class functions (i.e. methods).

IsService

RobloxApiClass:IsService() → boolean

Retrieves whether the class is a service

IsNotCreatable

RobloxApiClass:IsNotCreatable() → boolean

Retrieves whether the class is not creatable

IsNotReplicated

RobloxApiClass:IsNotReplicated() → boolean

Retrieves whether the class is not replicated

HasTag

RobloxApiClass:HasTag(tagNamestring) → boolean

Retrieves whether the class has a tag or not

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Constructs a new RobloxApiClass. See [RobloxApiDump.PromiseClass] to actually construct\nthis class.",
            "params": [
                {
                    "name": "robloxApiDump",
                    "desc": "",
                    "lua_type": "RobloxApiDump"
                },
                {
                    "name": "data",
                    "desc": "",
                    "lua_type": "table"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 22,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "GetRawData",
            "desc": "Retrieves the raw class data",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "table"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 50,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "GetClassName",
            "desc": "Gets the class name.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 58,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "GetMemberCategory",
            "desc": "Gets the class category.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string?"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 67,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseSuperClass",
            "desc": "Retrieves the super class, or rejects.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<RobloxApiClass>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 75,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseIsA",
            "desc": "Returns a promise that resolves whether this class is of a specific type.",
            "params": [
                {
                    "name": "className",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 89,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseIsDescendantOf",
            "desc": "Returns a promise that resolves whether this class is a descendant of another\nspecific class.",
            "params": [
                {
                    "name": "className",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 104,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseAllSuperClasses",
            "desc": "Returns a promise that resolves to all super classes.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<{ RobloxApiClass }>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 120,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "GetSuperClassName",
            "desc": "Returns the super class name",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string?"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 147,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "HasSuperClass",
            "desc": "Returns whether the class has a super class",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 160,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseMembers",
            "desc": "Retrieves all class members (events, properties, callbacks, functions).",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<{ RobloxApiMember }>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 168,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseProperties",
            "desc": "Gets all class properties.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<{ RobloxApiMember }>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 176,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseEvents",
            "desc": "Gets all class events.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<{ RobloxApiMember }>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 193,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseFunctions",
            "desc": "Gets all class functions (i.e. methods).",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<{ RobloxApiMember }>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 210,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "IsService",
            "desc": "Retrieves whether the class is a service",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 227,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "IsNotCreatable",
            "desc": "Retrieves whether the class is not creatable",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 235,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "IsNotReplicated",
            "desc": "Retrieves whether the class is not replicated",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 243,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "HasTag",
            "desc": "Retrieves whether the class has a tag or not",
            "params": [
                {
                    "name": "tagName",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 252,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "RobloxApiClass",
    "desc": "Represents a specific Roblox class.",
    "source": {
        "line": 5,
        "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
    }
}