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

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: AppBskyEmbedImages.View

The view of the embed.

imagesRecord: AppBskyEmbedImages.Main

The embed images record.