Skip to content

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

Package listing

@kody/twitch

src/get-user.ts

13 lines · 410 B · TypeScript
import { lookupUsers } from './client.ts'

/**
 * Look up one or more Twitch users by login or id.
 *
 * @example
 * import getUser from 'kody:@kody/twitch/get-user'
 * const users = await getUser({ login: 'twitchdev' })
 * // => [{ id: '...', login: 'twitchdev', displayName: 'TwitchDev' }]
 */
export default async function twitchGetUser(params: Record<string, unknown> = {}) {
	return lookupUsers(params)
}