Skyware
Select module
@skyware/bot
@skyware/firehose
Search
Guides
Introduction
Getting Started
Glossary
Listening to Events
Advanced Posting
Rich Text
Embeds and Images
Docs
Classes
Bot
EmbedImage
ExternalEmbed
Facet
FacetFeature
FeedGenerator
ImagesEmbed
LinkFeature
List
MentionFeature
Post
PostEmbed
PostReference
Profile
RecordEmbed
RecordWithMediaEmbed
RichText
TagFeature
Threadgate
Functions
facetAwareSegment
graphemeLength
isEmbedMainRecord
isEmbedView
postEmbedFromView
Enums
EventStrategy
GetUserPostsFilter
ListPurpose
PostSelfLabels
Types
BaseBotGetMethodOptions
BotCache
BotEventEmitterOptions
BotGetFeedGeneratorOptions
BotGetFeedGeneratorsOptions
BotGetListOptions
BotGetPostOptions
BotGetPostsOptions
BotGetProfileOptions
BotGetTimelineOptions
BotGetUserLikesOptions
BotGetUserListsOptions
BotGetUserPostsOptions
BotLoginOptions
BotOptions
BotPostOptions
CacheOptions
ExternalEmbedData
ExternalEmbedPayload
FeedGeneratorData
FeedGeneratorGetPostsOptions
ImageData
ImagePayload
ListData
ListFetchItemsOptions
ListGetFeedOptions
PostData
PostEmbedFromViewOptions
PostFetchChildrenOptions
PostFetchParentOptions
PostFetchRootOptions
PostPayload
PostReferenceData
ProfileData
RateLimitOptions
ReplyRef
StrongRef
ThreadgateData
function
isEmbedMainRecord
(
embed
)
Determines if the provided value is an embed record.
Parameters
embed
:
unknown
The embed to check.
Returns
embed
is
AppBskyEmbedExternal.Main
|
AppBskyEmbedImages.Main
|
AppBskyEmbedRecord.Main
|
AppBskyEmbedRecordWithMedia.Main