Guild stickers
A sticker is an image a guild stores for its members to send with a message. Names, descriptions, tags and images must pass the instance’s content policy, and blocked content returns CONTENT_BLOCKED. To look up a sticker without being in its guild, use Get sticker metadata.
Guild sticker object
Заголовок раздела «Guild sticker object»Structure
Заголовок раздела «Structure»| Field | Type | Description |
|---|---|---|
| id | snowflake | The ID of the sticker |
| name | string | The name of the sticker (2-30 characters) |
| description | string | The sticker description, or an empty string when it has none |
| tags | array[string] | The sticker tags |
| animated | boolean | Whether the image is animated |
| user? | partial user object | The account that uploaded the sticker, only on List guild stickers |
Example
Заголовок раздела «Example»{ "id": "1501314428688998183", "name": "shipit", "description": "Ship it", "tags": ["ship", "deploy"], "animated": false}Sticker create object
Заголовок раздела «Sticker create object»The body of Create guild sticker and each entry of Bulk create guild stickers.
Structure
Заголовок раздела «Structure»| Field | Type | Description |
|---|---|---|
| name | string | The name of the sticker (2-30 characters) |
| description? | ?string | The sticker description (1-500 characters) |
| tags? | array[string] | The sticker tags (at most 10, 1-30 characters each) |
| image | base64 string | The image data, up to the sticker_max_size limit (524288 bytes by default) |
Squad accepts PNG, JPEG, APNG, GIF, WebP, AVIF and SVG as base64 or a data URL, but not animated AVIF. A larger image returns IMAGE_SIZE_EXCEEDS_LIMIT, and an image in another format or one Squad can’t decode returns INVALID_IMAGE_FORMAT.
Sticker bulk create response object
Заголовок раздела «Sticker bulk create response object»The outcome of one Bulk create guild stickers call.
Structure
Заголовок раздела «Structure»| Field | Type | Description |
|---|---|---|
| success | array[guild sticker object] | The stickers that were created |
| failed | array[sticker creation failure object] | The items that were rejected |
Sticker creation failure object
Заголовок раздела «Sticker creation failure object»One rejected item from a bulk create call.
Structure
Заголовок раздела «Structure»| Field | Type | Description |
|---|---|---|
| name | string | The requested sticker name |
| error | string | The failure message, in the language of the account that sent the request |
List guild stickers
Заголовок раздела «List guild stickers»/v1/guilds/{guild_id}/stickersReturns the guild’s stickers. You need to be a member of the guild.
Response
Заголовок раздела «Response»| Status | Body | Condition |
|---|---|---|
| 200 | array[guild sticker object] | The stickers were returned |
The rate limit is 60 requests per 10 seconds, on the guild:sticker:list::guild_id bucket.
Create guild sticker
Заголовок раздела «Create guild sticker»/v1/guilds/{guild_id}/stickersCreates a sticker and returns it. You need CREATE_EXPRESSIONS. Squad sends a Guild Stickers Update event.
A guild can have 500 stickers by default, set by the max_guild_stickers limit key, and UNLIMITED_STICKERS raises it to 999999.
JSON body
Заголовок раздела «JSON body»The body is one sticker create object.
Response
Заголовок раздела «Response»| Status | Body | Condition |
|---|---|---|
| 200 | guild sticker object | The sticker was created |
| 400 | error response | MAX_STICKERS when the guild is at its sticker limit, or a field or the image is invalid |
The rate limit is 10 requests per 30 seconds, on the guild:sticker:create::guild_id bucket.
Bulk create guild stickers
Заголовок раздела «Bulk create guild stickers»/v1/guilds/{guild_id}/stickers/bulkCreates several stickers in one request and returns a sticker bulk create response object. You need CREATE_EXPRESSIONS. Squad sends one Guild Stickers Update event when at least one sticker was created.
Squad creates the items in order, and each one succeeds or fails on its own. The request returns 200 even when every item fails, and failed lists the items that weren’t created.
JSON body
Заголовок раздела «JSON body»| Field | Type | Description |
|---|---|---|
| stickers | array[sticker create object] | The stickers to create (1-50) |
Response
Заголовок раздела «Response»| Status | Body | Condition |
|---|---|---|
| 200 | sticker bulk create response object | Every item was attempted |
| 400 | error response | The body, the item count or any item’s fields fail validation |
The guild:sticker:bulk_create::guild_id bucket allows 6 requests per minute.
Clone guild sticker
Заголовок раздела «Clone guild sticker»/v1/guilds/{guild_id}/stickers/cloneCopies a sticker from any guild into this guild and returns it. You need CREATE_EXPRESSIONS in this guild, and you don’t need to be a member of the source guild. The source guild needs CLONE_STICKER_ENABLED. Squad sends a Guild Stickers Update event in the target guild.
JSON body
Заголовок раздела «JSON body»| Field | Type | Description |
|---|---|---|
| source_sticker_id | snowflake | The ID of the sticker to copy |
Response
Заголовок раздела «Response»| Status | Body | Condition |
|---|---|---|
| 200 | guild sticker object | The sticker was cloned |
| 400 | error response | MAX_STICKERS when the target guild is at its sticker limit |
| 403 | error response | MISSING_ACCESS when the source guild is gone or doesn’t allow cloning |
| 404 | error response | UNKNOWN_STICKER when the source sticker doesn’t exist |
The rate limit is 10 requests per 30 seconds, on the guild:sticker:clone::guild_id bucket.
Modify guild sticker
Заголовок раздела «Modify guild sticker»/v1/guilds/{guild_id}/stickers/{sticker_id}Updates the name, description and tags of a sticker and returns it. To replace the image, create a new sticker. The uploader needs CREATE_EXPRESSIONS and anyone else needs MANAGE_EXPRESSIONS. Squad sends a Guild Stickers Update event.
JSON body
Заголовок раздела «JSON body»| Field | Type | Description |
|---|---|---|
| name | string | The name of the sticker (2-30 characters) |
| description? | ?string | The sticker description (1-500 characters) |
| tags? | array[string] | The sticker tags (at most 10, 1-30 characters each) |
Response
Заголовок раздела «Response»| Status | Body | Condition |
|---|---|---|
| 200 | guild sticker object | The sticker was updated |
| 404 | error response | UNKNOWN_STICKER when the sticker isn’t in the guild |
The rate limit is 20 requests per 10 seconds, on the guild:sticker:update::guild_id bucket.
Delete guild sticker
Заголовок раздела «Delete guild sticker»/v1/guilds/{guild_id}/stickers/{sticker_id}Deletes a sticker and returns 204. The uploader needs CREATE_EXPRESSIONS and anyone else needs MANAGE_EXPRESSIONS. Squad sends a Guild Stickers Update event.
Query parameters
Заголовок раздела «Query parameters»| Field | Type | Description |
|---|---|---|
| purge? | boolean | Whether to permanently delete the stored image (default false) |
Response
Заголовок раздела «Response»| Status | Body | Condition |
|---|---|---|
| 204 | empty | The sticker was deleted |
| 403 | error response | MISSING_ACCESS when purge is set and the guild lacks EXPRESSION_PURGE_ALLOWED |
| 404 | error response | UNKNOWN_STICKER when the sticker isn’t in the guild |
The rate limit is 10 requests per 30 seconds, on the guild:sticker:delete::guild_id bucket. The guild:sticker:delete:daily::guild_id bucket allows 300 requests per day for each guild.