Skip to content

Packages  ›  trotsky  ›  StepActorMutes

StepActorMutes class ​

Represents a step for retrieving the authenticated user's muted actors using the Bluesky API. Supports paginated retrieval of muted accounts.

Signature:

typescript
export declare class StepActorMutes<P = Trotsky, C = null, O extends StepActorMutesOutput = StepActorMutesOutput> extends StepActors<P, C, O>

Extends: StepActors<P, C, O>

Example 1 ​

Get and iterate through muted actors:

ts
await Trotsky.init(agent)
  .mutes()
  .each()
  .tap((step) => {
    console.log(`Muted: ${step.context.handle}`)
  })
  .run()

Example 2 ​

Unmute all muted actors:

ts
await Trotsky.init(agent)
  .mutes()
  .each()
  .unmute()
  .wait(2000)
  .run()

Methods ​

Method

Modifiers

Description

applyPagination()

Applies pagination to retrieve muted actors and sets the output. Fetches paginated results using the agent and appends them to the output.