Show raw api
{
"functions": [
{
"name": "userRoleAdd",
"desc": "Adds a role to a user if they don't already have it",
"params": [
{
"name": "userId",
"desc": "",
"lua_type": "number"
},
{
"name": "role",
"desc": "",
"lua_type": "Role"
},
{
"name": "persist",
"desc": "",
"lua_type": "boolean?"
}
],
"returns": [
{
"desc": "",
"lua_type": "boolean\n"
}
],
"function_type": "static",
"source": {
"line": 143,
"path": "MainModule/Auth.luau"
}
},
{
"name": "userRoleRemove",
"desc": "Removes a role from a user if it exists",
"params": [
{
"name": "userId",
"desc": "",
"lua_type": "number"
},
{
"name": "role",
"desc": "",
"lua_type": "Role"
}
],
"returns": [
{
"desc": "",
"lua_type": "boolean\n"
}
],
"function_type": "static",
"source": {
"line": 194,
"path": "MainModule/Auth.luau"
}
},
{
"name": "getRank",
"desc": "Checks the maximum role rank of the user, if permission is given it will fetch the highest rank of the roles with that permission",
"params": [
{
"name": "userId",
"desc": "",
"lua_type": "number"
},
{
"name": "permission",
"desc": "",
"lua_type": "string?"
}
],
"returns": [
{
"desc": "",
"lua_type": "number"
},
{
"desc": "",
"lua_type": "Role"
}
],
"function_type": "static",
"source": {
"line": 342,
"path": "MainModule/Auth.luau"
}
},
{
"name": "roleCanUseArgument",
"desc": "Checks if a role has access to a command",
"params": [
{
"name": "role",
"desc": "",
"lua_type": "Role"
},
{
"name": "argument",
"desc": "",
"lua_type": "any"
}
],
"returns": [
{
"desc": "",
"lua_type": "boolean\n"
}
],
"function_type": "static",
"source": {
"line": 358,
"path": "MainModule/Auth.luau"
}
},
{
"name": "hasArgument",
"desc": "Checks if a user has access to a command",
"params": [
{
"name": "userId",
"desc": "",
"lua_type": "number"
},
{
"name": "argument",
"desc": "",
"lua_type": "any"
}
],
"returns": [
{
"desc": "",
"lua_type": "boolean\n"
}
],
"function_type": "static",
"source": {
"line": 383,
"path": "MainModule/Auth.luau"
}
},
{
"name": "roleCanUseCommand",
"desc": "Checks if a role has access to a command",
"params": [
{
"name": "role",
"desc": "",
"lua_type": "Role"
},
{
"name": "command",
"desc": "",
"lua_type": "any"
}
],
"returns": [
{
"desc": "",
"lua_type": "boolean\n"
}
],
"function_type": "static",
"source": {
"line": 408,
"path": "MainModule/Auth.luau"
}
},
{
"name": "hasCommand",
"desc": "Checks if a user has access to a command",
"params": [
{
"name": "userId",
"desc": "",
"lua_type": "number"
},
{
"name": "command",
"desc": "",
"lua_type": "any"
}
],
"returns": [
{
"desc": "",
"lua_type": "boolean\n"
}
],
"function_type": "static",
"source": {
"line": 463,
"path": "MainModule/Auth.luau"
}
},
{
"name": "hasPermission",
"desc": "Checks if a user has access to a permission",
"params": [
{
"name": "userId",
"desc": "",
"lua_type": "number"
},
{
"name": "permission",
"desc": "",
"lua_type": "string"
}
],
"returns": [
{
"desc": "",
"lua_type": "boolean\n"
}
],
"function_type": "static",
"source": {
"line": 508,
"path": "MainModule/Auth.luau"
}
},
{
"name": "rankDiff",
"desc": "Gets the difference of two users' ranks, with an optional permission parameter",
"params": [
{
"name": "userIdFrom",
"desc": "",
"lua_type": "number"
},
{
"name": "userIdTo",
"desc": "",
"lua_type": "number"
},
{
"name": "permission",
"desc": "",
"lua_type": "string?"
}
],
"returns": [],
"function_type": "static",
"source": {
"line": 529,
"path": "MainModule/Auth.luau"
}
}
],
"properties": [],
"types": [],
"name": "Auth",
"desc": "",
"source": {
"line": 13,
"path": "MainModule/Auth.luau"
}
}