Skip to content

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

Package listing

@kody/twitch

src/send-chat-message.ts

17 lines · 533 B · TypeScript
import { sendChatMessage } from './client.ts'

/**
 * Preview or send a Twitch chat message as the authorizing user.
 * Never posts when dryRun: true. A live send requires confirm: true.
 *
 * @example
 * import sendChatMessage from 'kody:@kody/twitch/send-chat-message'
 * const preview = await sendChatMessage({
 *   broadcasterLogin: 'twitchdev',
 *   message: 'Hello chat',
 *   dryRun: true,
 * })
 */
export default async function twitchSendChatMessage(params: Record<string, unknown> = {}) {
	return sendChatMessage(params)
}