class RecordEmbed

extends PostEmbed

A post embed that links to a post, list, or feed generator record.

Constructor

constructor(record)

Parameters

record: EmbeddableRecord

The embedded record.

Properties

record: EmbeddableRecord

The embedded record.

Methods

isImages()

Whether this embed contains images.

Returns

this is ImagesEmbed

isVideo()

Whether this embed contains a video.

Returns

this is VideoEmbed

isExternal()

Whether this embed is an external link.

Returns

this is ExternalEmbed

isRecordWithMedia()

Whether this embed contains a record with media.

Returns

this is RecordWithMediaEmbed

isRecord()

Whether this embed contains a record.

Returns

this is RecordEmbed

fromView(recordView, bot)

Constructs a RecordEmbed from an embed record view.

Parameters

recordView: "@atcute/client/lexicons".AppBskyEmbedRecord.View

The view of the embed record.

bot: Bot

The active Bot instance.