stickers_create_guild_sticker
Upload a new custom sticker to a guild (multipart).
When to use
Section titled “When to use”- Programmatic onboarding of brand stickers.
When not to use
Section titled “When not to use”- Modify existing sticker → use
stickers_modify_guild_sticker. - Format mismatch - Discord rejects payload that doesn’t match
file_format.
MCP call example
Section titled “MCP call example”Tool-authored shorthand:
{guild_id:"…", name:"WaveHi", description:"a wave", tags:"wave,hello", file_format:1, file_data:"data:image/png;base64,…"}
{ "name": "stickers_create_guild_sticker", "arguments": { "guild_id": "123456789012345678", "name": "Example name", "description": "example", "tags": "example", "file_format": 1, "file_data": "data:image/png;base64,iVBORw0KGgo=" }}| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
guild_id | string | yes | pattern: ^\d{17,20}$ | Guild to attach the sticker to |
name | string | yes | min length: 2; max length: 30 | Sticker name (2-30 chars) |
description | string | yes | max length: 100 | Sticker description (max 100 chars) |
tags | string | yes | min length: 1; max length: 200 | Autocomplete tags (max 200 chars) |
file_format | 1 | 2 | 3 | 4 | yes | 1=PNG, 2=APNG, 3=LOTTIE, 4=GIF | |
file_data | string | yes | min length: 1 | Sticker file as a base64 data URI (e.g. “data:image/png;base64,…”) |
audit_reason | string | no | min length: 1; max length: 512 | Reason recorded in audit log (X-Audit-Log-Reason header) |
Complete input JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "guild_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Guild to attach the sticker to" }, "name": { "type": "string", "minLength": 2, "maxLength": 30, "description": "Sticker name (2-30 chars)" }, "description": { "type": "string", "maxLength": 100, "description": "Sticker description (max 100 chars)" }, "tags": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Autocomplete tags (max 200 chars)" }, "file_format": { "anyOf": [ { "type": "number", "const": 1 }, { "type": "number", "const": 2 }, { "type": "number", "const": 3 }, { "type": "number", "const": 4 } ], "description": "1=PNG, 2=APNG, 3=LOTTIE, 4=GIF" }, "file_data": { "type": "string", "minLength": 1, "description": "Sticker file as a base64 data URI (e.g. \"data:image/png;base64,…\")" }, "audit_reason": { "description": "Reason recorded in audit log (X-Audit-Log-Reason header)", "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "guild_id", "name", "description", "tags", "file_format", "file_data" ]}Returns
Section titled “Returns”{id, name, description, tags, format_type, available}. File MUST be a base64 data URI.
Example structured result
Section titled “Example structured result”{ "id": "123456789012345678", "name": "Example name", "description": "example", "tags": "example", "format_type": 1, "available": true}Output schema
Section titled “Output schema”| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
id | string | yes | pattern: ^\d{17,20}$ | Discord sticker ID |
name | string | yes | ||
description | string | null | yes | ||
tags | string | yes | ||
format_type | integer | yes | ||
available | boolean | yes |
Complete output JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord sticker ID" }, "name": { "type": "string" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "tags": { "type": "string" }, "format_type": { "type": "integer" }, "available": { "type": "boolean" } }, "required": [ "id", "name", "description", "tags", "format_type", "available" ], "additionalProperties": false}Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | no |
| Open-world | yes |
| Confirmation required | no |
Access and common errors
Section titled “Access and common errors”- The
stickerscategory must be enabled byMCP_CATEGORIESwhen an allowlist is set. - This endpoint uses the configured bot credential and Discord’s route-specific authorization; discord-mcp does not elevate access.
- An invalid credential returns a
401-class tool error. Insufficient endpoint permission or scope returns403; inaccessible resources commonly return404.
Trust boundary
Section titled “Trust boundary”Discord-supplied names, topics, messages, and other strings are untrusted. Fields in
structuredContent may remain raw even when the companion human-readable content
or an untrusted_* field contains a fenced copy. Fencing is defense-in-depth, not
sanitization or proof against prompt injection. Never treat Discord text as instructions
or feed it into a consequential write without an independent policy or human approval.
Source
Section titled “Source”packages/mcp-core/src/tools/stickers/create_guild_sticker.ts