Create
Callback function when operation completes/fails.
Delete
Callback function when operation completes/fails.
Rename
Callback function when operation completes/fails.
ChangeDisplayName
Callback function when operation completes/fails.
ChangeImmunity
Callback function when operation completes/fails.
ChangeColor
Callback function when operation completes/fails.
ChangeExtends
Callback function when operation completes/fails.
AddPermission
Callback function when operation completes/fails.
RemovePermission
Callback function when operation completes/fails.
DeletePermission
Difference between RemovePermission and DeletePermission:
Get
Returns the role table for a name.
GetAll
Returns every role.
Exists
GetImmunity
Immunity level, or 0 if the role doesn't exist.
GetDisplayName
Display name, or "NULL" if the role doesn't exist.
GetColor
Role color, or Color(0, 0, 0) if the role doesn't exist.
GetExtends
The role it inherits from, if any.
IsDefault
Whether the role is one of superadmin, admin, user.
Defaults
{"superadmin", "admin", "user"}
CanTarget
Compares the immunity of two roles.
Extends
Whether role is target, or inherits from it at any depth.
CanExtend
Whether role may extend to_extend without creating a circular inheritance chain.
SortyByImmunity
Sorts an array of role names in place, highest immunity first. Ties break
Loaded
Always true on the server. On the client, true once roles have synced.
HasPermission
Whether a role has a permission, walking up the extends chain.
ResolvePermission
Like HasPermission, but also tells you which
GetCommandConstraints
All constraints a role has on a command, keyed by parameter index.
GetCommandParamConstraints
Resolves the constraint for a single parameter, walking up the extends chain.
ResolveCommandParamConstraints
Like GetCommandParamConstraints,
SetCommandConstraints
Replaces every constraint for a role/command pair.
SetCommandParamConstraints
Sets a single parameter's constraint. Pass nil to clear it, which makes the