@kody/x
src/like-tweet.ts
12 lines · 410 B · TypeScriptimport { likeTweet } from './client.ts'
import type { XTweetActionParams } from './client.ts'
/**
* Like or dry-run liking an X post. Requires confirm: true.
* @example
* import likeTweet from 'kody:@kody/x/like-tweet'
* const preview = await likeTweet({ tweetId: '123', dryRun: true })
*/
export default async function likeTweetEntrypoint(params: XTweetActionParams) {
return await likeTweet(params)
}