dc_delete
dc_delete(value)#
Example scripts
Deletes whatever 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 |
Message, Role, Emoji, Sticker, Webhook, Slash command | The value to delete. |
Output values#
Return values#
- Null, if successful.
Uncaught exceptions #
Throws an exception on failure.
api_exceptionmissing_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.