Skip to content

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

Package listing

@kody/x

src/unfollow-user.ts

12 lines · 434 B · TypeScript
import { unfollowUser } from './client.ts'
import type { XUserActionParams } from './client.ts'

/**
 * Unfollow or dry-run unfollowing an X user. Requires confirm: true.
 * @example
 * import unfollowUser from 'kody:@kody/x/unfollow-user'
 * const preview = await unfollowUser({ username: 'X', dryRun: true })
 */
export default async function unfollowUserEntrypoint(params: XUserActionParams) {
	return await unfollowUser(params)
}