dc_set_name
dc_set_name(value, name)
#
Renames the value provided.
Blocking function
Invoking this function can freeze the game.
Use it in a task
to avoid freezing your game.
Input parameters#
Parameter | Type | Description |
---|---|---|
value |
Channel, Role, Emoji, Sticker, Webhook, Server | The value to rename. |
name |
String | The name to use for the value. |
Output values#
Return values#
- Null, if successful.
Uncaught exceptions #
Throws an exception on failure.
* api_exception
* missing_permission
* Message - You do not have "Manage Messages" permission.
* Role - You do not have "Manage Roles" permission, or the role is of higher hierarchy.
* Emoji, Sticker - You do not have "Manage Expressions" permission.
* Webhook - You do not have "Manage Webhooks" permission.
* Server - You do not have "Manage Server" permission.