Skip to content
← Public packages

@kody/x

Look up X users and tweets, search recent posts, and preview guarded posts through saved OAuth.

FollowFork

Files

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)
}