dc_add_role

dc_add_role(user, role, reason?)#

Blocking function

This function is blocking, meaning it can freeze the game. Use it in a task to avoid freezing your game.

Adds a role to a user.

If provided, reason will be shown in the audit log of your server.

Throws an exception on failure