Packages › trotsky › StepActorUnmute
StepActorUnmute class
Represents step that unmutes the current actor (if muted).
Signature:
typescript
export declare class StepActorUnmute<P = StepActor, C extends StepActorOutput = StepActorOutput, O = null> extends Step<P, C, O>Extends: Step<P, C, O>
Example 1
Unmute a specific actor:
ts
await Trotsky.init(agent)
.actor("user.bsky.social")
.unmute()
.run()Example 2
Unmute all muted accounts:
ts
const { data: { mutes } } = await agent.app.bsky.graph.getMutes()
await Trotsky.init(agent)
.actors(mutes.map(m => m.did))
.each()
.unmute()
.wait(1000)
.run()Methods
Method | Modifiers | Description |
|---|---|---|
Applies the unmute logic by calling the unmute API endpoint. |