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(selfRobloxApiClass) → table

Retrieves the raw class data

GetClassName

RobloxApiClass.GetClassName(selfRobloxApiClass) → string

Gets the class name.

GetMemberCategory

RobloxApiClass.GetMemberCategory(selfRobloxApiClass) → string?

Gets the class category.

PromiseSuperClass

RobloxApiClass.PromiseSuperClass(selfRobloxApiClass) → 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(selfRobloxApiClass) → Promise<{RobloxApiClass}>

Returns a promise that resolves to all super classes.

GetSuperClassName

RobloxApiClass.GetSuperClassName(selfRobloxApiClass) → string?

Returns the super class name

HasSuperClass

RobloxApiClass.HasSuperClass(selfRobloxApiClass) → boolean

Returns whether the class has a super class

PromiseMembers

RobloxApiClass.PromiseMembers(selfRobloxApiClass) → Promise<{RobloxApiMember}>

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

PromiseProperties

RobloxApiClass.PromiseProperties(selfRobloxApiClass) → Promise<{RobloxApiMember}>

Gets all class properties.

PromiseEvents

RobloxApiClass.PromiseEvents(selfRobloxApiClass) → Promise<{RobloxApiMember}>

Gets all class events.

PromiseFunctions

RobloxApiClass.PromiseFunctions(selfRobloxApiClass) → Promise<{RobloxApiMember}>

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

IsService

RobloxApiClass.IsService(selfRobloxApiClass) → boolean

Retrieves whether the class is a service

IsNotCreatable

RobloxApiClass.IsNotCreatable(selfRobloxApiClass) → boolean

Retrieves whether the class is not creatable

IsNotReplicated

RobloxApiClass.IsNotReplicated(selfRobloxApiClass) → 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": 33,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "GetRawData",
            "desc": "Retrieves the raw class data",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "table"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 61,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "GetClassName",
            "desc": "Gets the class name.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 69,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "GetMemberCategory",
            "desc": "Gets the class category.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 78,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseSuperClass",
            "desc": "Retrieves the super class, or rejects.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<RobloxApiClass>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 86,
                "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": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                },
                {
                    "name": "className",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<boolean>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 100,
                "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": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                },
                {
                    "name": "className",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<boolean>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 115,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseAllSuperClasses",
            "desc": "Returns a promise that resolves to all super classes.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<{ RobloxApiClass }>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 131,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "GetSuperClassName",
            "desc": "Returns the super class name",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 158,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "HasSuperClass",
            "desc": "Returns whether the class has a super class",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 171,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseMembers",
            "desc": "Retrieves all class members (events, properties, callbacks, functions).",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<{ RobloxApiMember }>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 179,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseProperties",
            "desc": "Gets all class properties.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<{ RobloxApiMember }>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 187,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseEvents",
            "desc": "Gets all class events.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<{ RobloxApiMember }>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 203,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "PromiseFunctions",
            "desc": "Gets all class functions (i.e. methods).",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<{ RobloxApiMember }>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 219,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "IsService",
            "desc": "Retrieves whether the class is a service",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 235,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "IsNotCreatable",
            "desc": "Retrieves whether the class is not creatable",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 243,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "IsNotReplicated",
            "desc": "Retrieves whether the class is not replicated",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 251,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        },
        {
            "name": "HasTag",
            "desc": "Retrieves whether the class has a tag or not",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "RobloxApiClass"
                },
                {
                    "name": "tagName",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 260,
                "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "RobloxApiClass",
    "desc": "Represents a specific Roblox class.",
    "source": {
        "line": 6,
        "path": "src/roblox-api-dump/src/Server/RobloxApiClass.lua"
    }
}