Interface

APIEmbed

Full embed object as returned by the API / gateway.

Properties

NameTypeDescription
audio?APIEmbedMedia | nullAudio media (response/unfurl only — not on create).
author?APIEmbedAuthor | nullAuthor block.
children?APIEmbedChild[] | nullNested embeds from unfurlers
color?number | nullAccent color as a 24-bit integer (0xRRGGBB).
description?string | nullBody description (markdown).
fields?APIEmbedField[] | nullField rows.
html?string | nullSanitized oEmbed HTML for specialized renderers.
html_height?number | nullPreferred height of sanitized oEmbed HTML.
html_width?number | nullPreferred width of sanitized oEmbed HTML.
image?APIEmbedMedia | nullLarge image.
nsfw?boolean | nullWhether the embed is marked NSFW.
provider?APIEmbedAuthor | nullProvider / site name block (same shape as author).
thumbnail?APIEmbedMedia | nullSmall thumbnail.
timestamp?string | nullISO-8601 timestamp shown in the embed.
title?string | nullTitle text.
typeEmbedTypeRender kind; see EmbedType.
url?string | nullCanonical URL associated with the embed.
video?APIEmbedMedia | nullVideo media (response/unfurl only — not on create).