← Public packages
@kody/x
Look up X users and tweets, search recent posts, and preview guarded posts through saved OAuth.
Files
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)
}