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.
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.
type?EmbedTypeRender kind; see EmbedType.
url?string | nullCanonical URL associated with the embed.
video?APIEmbedMedia | nullVideo media (response/unfurl only — not on create).