Packages › trotsky › StepActorBlock
StepActorBlock class
Represents a step that performs an actor block operation using the Bluesky API.
Signature:
typescript
export declare class StepActorBlock<P = StepActor, C extends StepActorOutput = StepActorOutput, O = null> extends Step<P, C, O>Extends: Step<P, C, O>
Example 1
Block a specific actor:
ts
await Trotsky.init(agent)
.actor("spammer.bsky.social")
.block()
.run()Example 2
Block actors posting spam content:
ts
await Trotsky.init(agent)
.searchPosts({ q: "spam content" })
.take(10)
.each()
.author()
.block()
.wait(1000)
.run()Methods
Method | Modifiers | Description |
|---|---|---|
Applies the step by performing a block operation. Requires the context to provide the |