app_emojis_create
Create a custom emoji for your Discord bot application, usable across servers without a guild. Pass a base64 image (JPEG, PNG, GIF, WEBP, AVIF; ≤256 KiB) and a name (2-32 chars).
Instructions
Purpose: Upload a new application-scoped custom emoji (applications can own up to 2,000).
When to use:
Register an emoji available wherever the bot is - independent of guild.
Omit
application_idto register it on the authenticated bot application.
When NOT to use:
Guild-only emoji → use
emojis_create.
Upload requirements: JPEG, PNG, GIF, WEBP, or AVIF; decoded image ≤ 256 KiB; 128×128 is recommended; name is 2-32 ASCII letters, digits, or underscores.
Example: {name:"spark", image:"data:image/png;base64,…"} (application_id is optional for the current bot)
Returns: {id, name, animated}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Emoji name (2-32 ASCII letters, digits, or underscores) | |
| image | Yes | Emoji image as a JPEG, PNG, GIF, WEBP, or AVIF base64 data URI (max 256 KiB decoded) | |
| application_id | No | Application to attach the emoji to (omit to use the authenticated bot application) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||