class ExternalEmbed

extends PostEmbed

A post embed that links to external content.

Constructor

constructor(data)

Parameters

data: ExternalEmbedData

Embed data.

Properties

uri: string

The URI of the external content.

title: string

The title of the embed.

description: string

The description of the embed.

thumb?: string

The URL for the embed's thumbnail.

Methods

isImages()

Whether this embed contains images.

Returns

this is ImagesEmbed

isRecord()

Whether this embed contains a record.

Returns

this is RecordEmbed

isRecordWithMedia()

Whether this embed contains a record with media.

Returns

this is RecordWithMediaEmbed

isExternal()

Whether this embed is an external link.

Returns

this is ExternalEmbed

fromView(externalView)

Constructs an ExternalEmbed from an embed view.

Parameters

externalView: AppBskyEmbedExternal.View

The view of the embed.