← Public packages
@kody/twitch
Look up Twitch users, channels, streams, and follows, with dry-run chat and channel updates.
Files
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)
}