Docs
Stickers
A server's own stickers: Discord's routes, sending them in a message, and what tether leaves out.
A sticker is a picture that belongs to a server and is sent as a message of its own. tether has Discord's
guild stickers: the same routes, the same fields, the same event. It has no Lottie stickers and no standard
packs, so every sticker is a server's (type 2) and format_type is 1 (PNG), 2 (APNG) or 4 (GIF).
A server may have 10 stickers. A picture up to 512 KB is accepted and, when it is bigger than 320×320
pixels, scaled down to fit (an animation stays an animation). What tether stores and serves is always a picture
it made itself from the decoded frames, with no metadata in it. An animation's canvas is at most 1024×1024 and
its width × height × frames at most 4 million, or it is refused (IMAGE_TOO_COMPLEX). One person makes one
sticker picture at a time; a second upload while the first is being made is 429.
The sticker object
{
"id": "107441200000000550",
"name": "campfire",
"description": "A little fire",
"tags": "fire",
"type": 2,
"format_type": 1,
"available": true,
"guild_id": "107441200000000001"
}
APISticker has user (who uploaded it) only in the answers of the sticker routes, only for
people with Create Expressions or Manage Expressions, and not in a server's payload or in events.
Get Sticker for a sticker of a server you are not in has no description and no user. tags is the emoji the sticker is about, comma separated: tether's own app
writes the emoji's name (fire), other clients may write a list. A sticker's picture is at
/api/v1/stickers/<id>.png (a GIF sticker at .gif), public and cached for a year, like emoji.
Routes
| What | Route |
|---|---|
| List a server's | List Guild Stickers |
| One sticker | Get Guild Sticker, or Get Sticker by id alone |
| Upload | Create Guild Sticker: multipart/form-data |
| Change the words | Modify Guild Sticker (name, description, tags) |
| Delete | Delete Guild Sticker |
Uploading needs Create Expressions; changing or deleting someone else's needs Manage Expressions (Create
Expressions is enough for a sticker you uploaded yourself). The limits are Discord's: name 2 to 30 characters,
description empty or 2 to 100, tags 2 to 200. Stickers are not in tether's name rules. Past 10 stickers the
answer is 400 with code 30039 (MAXIMUM_STICKERS); a picture that is not a PNG, APNG or GIF, or is over
512 KB, is 400 with a field error on file.
Every picture goes through the same image check as the other pictures people upload (see Errors,
90255).
import aiohttp
async def upload_sticker(token: str, guild_id: str, path: str):
form = aiohttp.FormData()
form.add_field('name', 'campfire')
form.add_field('description', 'A little fire')
form.add_field('tags', 'fire')
form.add_field('file', open(path, 'rb'), filename='campfire.png', content_type='image/png')
async with aiohttp.ClientSession() as s:
r = await s.post(
f'https://app.tethr.lol/api/v1/guilds/{guild_id}/stickers',
headers={'Authorization': f'Bot {token}'},
data=form,
)
return await r.json()
Sending a sticker
Create Message takes sticker_ids: up to 3 ids. The message needs no text. It carries
them back as sticker_items, in the order you gave them:
{ "sticker_ids": ["107441200000000550"] }
{
"content": "",
"sticker_items": [{ "id": "107441200000000550", "name": "campfire", "format_type": 1 }]
}
The sender has to be in the server the sticker belongs to; unlike Discord, tether does not insist that this is
the server of the channel (its own app only offers a server's stickers in that server, and shows the others
locked). An id that does not exist, or that belongs to a server the sender is not in, is 400 10060
(UNKNOWN_STICKER). A sticker cannot go with a poll, a rich post or a voice message.
sticker_items keeps the name and format the sticker had when it was sent: a message still says what it carried
after the sticker is renamed or deleted (its picture is gone then).
Events
GUILD_STICKERS_UPDATE (intent GUILD_EXPRESSIONS, bit 3) carries the whole new list after any change, like
GUILD_EMOJIS_UPDATE does for emoji: {guild_id, stickers}. A server's stickers are also in GET /guilds/{id}
and in GUILD_CREATE. Changes are recorded in the audit log as STICKER_CREATE (90), STICKER_UPDATE (91) and
STICKER_DELETE (92).
What is different from Discord
- No Lottie (
format_type3), no standard sticker packs, no/sticker-packs. - 10 stickers a server, not Discord's 5 to 60 by boost level.
- A picture over 320×320 is scaled down instead of refused.
- A message may carry a sticker of any server the sender is in (see above).
tagsis 2 to 200 characters and, in tether's own app, one emoji name.