dc_remove_role
dc_remove_role(user, role, reason?)
#
Removes a role from a user.
Blocking function
Invoking this function can freeze the game.
Use it in a task
to avoid freezing your game.
Input parameters#
Parameter | Type | Description |
---|---|---|
user |
User | The user to remove the role from. |
role |
Role | The role to remove. |
reason |
String | The audit log reason. |
Output values#
Return values#
- Null, if successful.
Uncaught exceptions #
- Throws an exception on failure.
missing_permission
50001
- You do not have "Manage Roles" permission50013
- You may be trying to remove a role that is of higher hierachy