Overview
Can be accessed using client.teams
on an ApiClient instance.
Example
const api = new ApiClient({ authProvider }); const tags = await api.teams.getChannelTeams('125328655');
Methods
getTeamById(id)
asyncGets a team by ID.
Returns null if there is no team with the given ID.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
id | string | none | The ID of the team. |
Return type: HelixTeamWithUsers | null
getTeamByName(name)
asyncGets a team by name.
Returns null if there is no team with the given name.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
name | string | none | The name of the team. |
Return type: HelixTeamWithUsers | null
getTeamsForBroadcaster(broadcaster)
asyncGets a list of all teams a broadcaster is a member of.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
broadcaster | UserIdResolvable A user ID or a user or channel object. This is not a user name. Please use HelixUserApi#getUserByName to fetch a user object by name. Aliased type: string | number | UserIdResolvableType | none | The broadcaster to get the teams of. |
Return type: HelixTeam[]