developers / Models
EmbedStyle
How a link's preview looks where it's pasted: a built-in style, or an account's own, with its picture, colour, time, author and motion.
This page as MarkdownFields
idintegerkeyenum | nullA built-in's key; null for your own
One of
hematiteminimaldetailedgamerphoto-modequietnamestring | nullA built-in's name, or a saved style's; null for your account's own, which has none
aboutstring | nullWhat a built-in shows, in a line; null for your own
basedOnenum | nullThe built-in your own style starts from, whose words it says; null for a built-in
One of
hematiteminimaldetailedgamerphoto-modequietversionintegerCounts its saves: 1 when made, one more each time it changes
authorenumWho the card names over its title, in Discord through oEmbed: Uploader (the uploader, or a folder's owner) or None. Hiding yourself as an image's uploader, or hiding your page, names nobody whatever the style says
One of
UploaderNonepictureenumHow the card shows its picture: Large under the words, Small beside them (square), Alone (Discord shows only the picture; elsewhere the large card), None. An image marked NSFW or shielded shows none whatever the style says
One of
LargeSmallAloneNonecropToCardbooleanWith a large picture: cropped to 1.91 : 1, the shape X, Facebook, LinkedIn and WhatsApp draw, round its busiest part
colourenumThe colour of Discord's bar, the only platform that shows one: Hematite (the accent's ice steel), Picture (the picture's own, made light enough to read on Discord's grey) or Custom (colourHex)
One of
HematitePictureCustomcolourHexstring | nullThe bar's colour with Custom: # and six hex digits, lowercase. Kept while another colour is chosen
showTimebooleanWhen it was uploaded, under the card in each reader's own time (Discord)
motionbooleanAn animated GIF or WebP moves in the card; off, it's its first frame
titlestring | nullIts own title, a template (concept 11 §3); null says the built-in's. Said only on a plan that gives own words
descriptionstring | nullIts own description, a template; null says the built-in's
siteenumThe site line: Hematite, Domain (the domain your links go to) or Custom (siteText)
One of
HematiteDomainCustomsiteTextstring | nullIts own site name, a template; kept while another site line is chosen
{
"id": 1,
"key": "hematite",
"name": "Ranked",
"about": "string",
"basedOn": "hematite",
"version": 0,
"author": "Uploader",
"picture": "Large",
"cropToCard": false,
"colour": "Hematite",
"colourHex": "string",
"showTime": false,
"motion": false,
"title": "Clutch on Ascent",
"description": "1v4 on the last round",
"site": "Hematite",
"siteText": "string"
}Returned by
The endpoints whose data holds an EmbedStyle as it is, and where.
- get
/usersGet the link preview styles you can choose (Settings → Embeds): the six built-ins every plan has (hematite, Minimal, Detailed, Gamer, Photo mode, Quiet), in that order, then your account's own, then your saved styles by name/:userId /embed-styles data[] - post
/usersSave a link preview style by its name (Silver 10, Gold 25): the built-in it starts from, every choice and its own words/:userId /embed-styles data - patch
/usersChange one of your saved link preview styles in place, its name too: every link that follows it says the new card/:userId /embed-styles /:styleId data
Inside other models
The models with an EmbedStyle in a field.