class ImagesEmbed

extends PostEmbed

A post embed that contains 1 to 4 images.

Constructor

constructor(images)

Parameters

images: EmbedImage[]

The images within this embed.

Properties

images: EmbedImage[]

The images within this embed.

Methods

isVideo()

Whether this embed contains a video.

Returns

this is VideoEmbed

isExternal()

Whether this embed is an external link.

Returns

this is ExternalEmbed

isRecord()

Whether this embed contains a record.

Returns

this is RecordEmbed

isRecordWithMedia()

Whether this embed contains a record with media.

Returns

this is RecordWithMediaEmbed

isImages()

Whether this embed contains images.

Returns

this is ImagesEmbed

fromView(imagesView, imagesRecord)

Constructs an ImagesEmbed from an embed view and a record.

Parameters

imagesView: "@atcute/client/lexicons".AppBskyEmbedImages.View

The view of the embed.

imagesRecord: "@atcute/client/lexicons".AppBskyEmbedImages.Main

The embed images record.