dc_set_nickname
dc_set_nickname(user, server, name, reason?)
#
Sets the nickname of a user in a server.
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 set the nickname. |
server |
Server | The server to set the user's nickname. |
name |
String | The name to set the user to. |
reason |
String | The audit log reason. |
Output values#
Return values#
- Null, if successful.
Uncaught exceptions #
- Throws an exception on failure.
missing_permission
50013
- You do not have "Manage Nicknames" permission, or the user is of higher hierarchy