discord_edit_emoji
Rename a custom Discord emoji or update which roles can use it; provide role IDs to replace restrictions, or an empty list to open it to everyone.
Instructions
Rename a custom emoji or change which roles may use it. Only provided fields change. Requires Manage Expressions. Passing role_ids replaces the whole restriction list; pass an empty array to open the emoji to everyone. Returns the updated emoji.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New emoji name. | |
| reason | No | Optional reason recorded in the audit log. | |
| emoji_id | Yes | ID of the emoji to edit. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| role_ids | No | Replacement role restriction list. Empty array means everyone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| name | Yes | ||
| managed | Yes | ||
| animated | Yes | ||
| role_ids | Yes | ||
| author_id | Yes | ||
| available | Yes |