Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/bluesky

src/follow.ts

15 lines · 570 B · TypeScript
import { follow } from './client.ts'
import type { FollowInput } from './types.ts'

/**
 * Follow a Bluesky actor. Publishing requires `confirm: true`.
 * @param params.actor - Handle or DID to follow.
 * @returns Created follow record or dry-run payload.
 * @example
 * import follow from 'kody:@kody/bluesky/follow'
 * const result = await follow({ actor: 'example.bsky.social', dryRun: true })
 * // => { dryRun: true, action: 'follow', payload: { ... } }
 */
export default async function followEntrypoint(params: FollowInput = {}) {
  return await follow(params)
}