Appearance
Class: Team
A Kappapps team returned by kapp.teams.get().
Properties
id
ts
readonly id: number;Kappapps team ID.
name
ts
readonly name: string;Team name when fetched. Call kapp.teams.get() again to refresh it.
Methods
getChannels()
ts
getChannels(): Promise<TeamChannelData[]>;Fetches this team's members, including the current channel, sorted by login then channel ID.
Returns
Promise<TeamChannelData[]>
The current members with their Twitch snapshots; an empty list if none are found on Twitch.
Remarks
Apps require teams:read for every manifest version; widgets do not declare scopes. Membership and roles are checked on every call. A missing or inaccessible team rejects with 404. Each result contains the public Twitch /channels fields plus stream (the /streams object, or null when offline), channel_id and role. A stream with zero viewers is live. Twitch data uses the same fixed 30-second server cache as kapp.twitch.channels(); reading does not extend it. Membership data is not cached, and there is no SDK cache. Accounts missing on Twitch are omitted. Twitch failures reject, never report offline.