Skip to content

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

Package listing

@kody/x

src/follow-user.ts

13 lines · 459 B · TypeScript
import { followUser } from './client.ts'
import type { XUserActionParams } from './client.ts'

/**
 * Follow or dry-run following an X user. Requires confirm: true.
 * Accepts `username` or `targetUserId`.
 * @example
 * import followUser from 'kody:@kody/x/follow-user'
 * const preview = await followUser({ username: 'X', dryRun: true })
 */
export default async function followUserEntrypoint(params: XUserActionParams) {
	return await followUser(params)
}