discord_create_emoji
Uploads a custom emoji to a Discord server from an HTTPS URL, data URI, or base64 PNG/JPEG/GIF/WebP image, validating Discord's name and size rules and returning the created emoji.
Instructions
Upload a new custom emoji to the server. The name must be 2–32 characters using only letters, digits and underscores (Discord's rule). Accepts an https URL, data: URI or base64 image: PNG, JPEG, GIF or WebP, up to 256 KB for emojis. Requires Manage Expressions. Discord also caps the total number of emojis by boost tier, and rejects the upload with a clear error once the cap is reached. Returns the created emoji.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Emoji name, e.g. 'pepe_happy'. This is the text used in :name:. | |
| image | Yes | An image as an https URL, a data:image/png;base64,... URI, or a bare base64 string (PNG, JPEG, GIF or WebP, max 10 MB). | |
| reason | No | Optional reason recorded in the audit log. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| role_ids | No | Restrict the emoji to these roles. Omit for 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 |