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: EmbeddableRecord
The embedded post record.
media: ExternalEmbed | ImagesEmbed
The media within this embed.
Properties
record: EmbeddableRecord
The embedded post record.
media: ExternalEmbed | ImagesEmbed
The media within this embed.
Methods
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: "@atcute/client/lexicons".AppBskyEmbedRecordWithMedia.View
The view of the embed.
record: "@atcute/client/lexicons".AppBskyEmbedRecordWithMedia.Main
The embed record.
bot: Bot
The active Bot instance.