API docs
Search docs
Guides, operations and types

Emotes, mutation

prepareEmoteDownload

Public No credentials needed.

A download of the emote in one of its downloadFormats, in scale 1 to 4 (the 1x to 4x size; a missing scale falls back to the next smaller). WebP and AVIF are ready at once. GIF (animated emotes) and PNG (static emotes) are made on request and kept for a few days: the first call starts the conversion and returns PENDING; call again after retryAfter seconds until READY. Starting conversions is rate limited; works signed out.

Arguments

id ID! required
format FileFormat! required
AVIFWEBPGIFPNG
scale Int! default 4

Returns

EmoteDownload!

format FileFormat!
AVIFWEBPGIFPNG
scale Int!

The scale delivered (the requested one, or the next smaller one stored).

READYPENDINGFAILED
url String

Set when READY. Converted files are served as attachments.

size Int

Size in bytes, when READY.

expiresAt Time

When a converted file is deleted (a later request makes it again).

retryAfter Int

Seconds to wait before asking again, while PENDING.

error String
Search
Find emotes or users, or jump to a page