Skip to content

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

Package listing

@kody/x

src/unrepost-tweet.ts

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

/**
 * Remove a repost or dry-run the action. Requires confirm: true.
 * @example
 * import unrepostTweet from 'kody:@kody/x/unrepost-tweet'
 * const preview = await unrepostTweet({ id: '123', dryRun: true })
 */
export default async function unrepostTweetEntrypoint(params: XTweetActionParams) {
	return await unrepostTweet(params)
}