emojis_create
Upload custom emojis to a Discord guild using a base64 image and name. Set optional roles to control usage for streamlined brand emoji onboarding.
Instructions
Purpose: Upload a new custom emoji to a guild.
When to use:
Programmatic onboarding of brand emojis.
When NOT to use:
Application-wide emojis → use
app_emojis_create.Image > 256KB before base64 → Discord rejects.
Example: {guild_id:"…", name:"sparkle", image:"data:image/png;base64,iVBOR…"}
Returns: {id, name, animated, roles}. Image MUST be a base64 data URI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Emoji name (2-32 chars) | |
| image | Yes | Emoji image as a base64 data URI (e.g. "data:image/png;base64,…") | |
| roles | No | Roles allowed to use this emoji (omit for everyone) | |
| guild_id | Yes | Target guild | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||