Skip to content

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

Package listing

@kody/twitch

src/update-channel-info.ts

17 lines · 567 B · TypeScript
import { updateChannelInfo } from './client.ts'

/**
 * Preview or update a Twitch channel title and/or game category.
 * Never mutates when dryRun: true. A live update requires confirm: true.
 *
 * @example
 * import updateChannelInfo from 'kody:@kody/twitch/update-channel-info'
 * const preview = await updateChannelInfo({
 *   title: 'Building with Kody',
 *   gameName: 'Software and Game Development',
 *   dryRun: true,
 * })
 */
export default async function twitchUpdateChannelInfo(params: Record<string, unknown> = {}) {
	return updateChannelInfo(params)
}