class Threadgate

A threadgate limits who can reply to a post.

Constructor

constructor(data)

Parameters

data: ThreadgateData

Threadgate data.

Properties

cid: string

The threadgate's CID.

uri: string

The threadgate's AT URI.

createdAt: Date

When the threadgate was created.

post: Post

The post this threadgate is attached to.

allowsFollowing: boolean

Whether users followed by the threadgate author are allowed to reply.

allowsMentioned: boolean

Whether users mentioned in the post are allowed to reply.

allowedLists: List[]

Lists whose members are allowed to reply.

Methods

fromView(view, post, bot)

Constructs an instance from a ThreadgateView.

Parameters

post: Post
bot: Bot

Returns

Threadgate