emojis_create
Upload a custom emoji to a Discord guild using a base64 data URI, with optional role restrictions and audit reason. Use it for programmatic 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"guild_id": "<guild_id>",
"name": "<name>",
"image": "<image>"
},
"name": "emojis_create"
}
}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 | |||