class RecordWithMediaEmbed

extends PostEmbed

A post embed that links to a record in addition to either images or external content.

Constructor

constructor(record, media)

Parameters

record: Post

The embedded post record.

media: ExternalEmbed | ImagesEmbed

The media within this embed.

Properties

record: Post

The embedded post record.

media: ExternalEmbed | ImagesEmbed

The media within this embed.

Methods

isImages()

Whether this embed contains images.

Returns

this is ImagesEmbed

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

fromView(view, record, bot)

Constructs a RecordWithMediaEmbed from an embed view and a record.

Parameters

view: AppBskyEmbedRecordWithMedia.View

The view of the embed.

record: AppBskyEmbedRecordWithMedia.Main

The embed record.

bot: Bot

The active Bot instance.