emojis_modify
Update a guild emoji's name or role restrictions. Rename it or limit its use to specific roles.
Instructions
Purpose: Update a guild emoji's name and/or role restrictions.
When to use:
Rename an emoji; restrict to a role tier.
When NOT to use:
Replacing the image - Discord does not allow editing emoji bytes; create a new one and delete the old.
Returns: {id, name, animated, roles}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name (2-32 chars) | |
| roles | No | Replacement role list (empty array = everyone) | |
| emoji_id | Yes | Emoji to modify | |
| guild_id | Yes | Guild owning the emoji | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||