Skip to content

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

Package listing

@kody/x

src/create-tweet.ts

12 lines · 435 B · TypeScript
import { createTweet } from './client.ts'
import type { XCreateTweetParams } from './client.ts'

/**
 * Create or dry-run an X post. Publishing requires confirm: true.
 * @example
 * import createTweet from 'kody:@kody/x/create-tweet'
 * const draft = await createTweet({ text: 'Hello from Kody', dryRun: true })
 */
export default async function createTweetEntrypoint(params: XCreateTweetParams) {
	return await createTweet(params)
}