class FacetFeature

Represents a decoration applied to a span of text.

Constructor

constructor($type)

Parameters

$type: `app.bsky.richtext.facet#${string}`

Properties

$type: `app.bsky.richtext.facet#${string}`

Methods

isMention()

Whether this facet is a mention.

Returns

this is MentionFeature

Whether this facet is a link.

Returns

this is LinkFeature

isTag()

Whether this facet is an in-text hashtag.

Returns

this is TagFeature