twitcheasy-twitch-bottwitch-authtwitch-auth-tmitwitch-chat-clienttwitch-eventsubtwitch-pubsub-clienttwitch-webhooks
Welcome

TeamApi

The API methods that deal with teams.

Overview

Can be accessed using client.kraken.teams on an ApiClient instance.

Example

const api = new ApiClient(new StaticAuthProvider(clientId, accessToken));
const team = await api.kraken.teams.getTeamByName('staff');

Methods

getTeamByName(team)

async

Retrieves the team data for the given team name.

Parameter Type Required Default Description
team string none

The team name you want to look up.

Return type: TeamWithUsers

getTeams(page, limit)

async

Get a list of teams.

Parameter Type Required Default Description
page number none

The result page you want to retrieve.

limit number 25

The number of results you want to retrieve.

Return type: Array<Team>