Skip to content

API Reference / getSystem

Function: getSystem()

getSystem(id): Promise<System | null>

Defined in: service.ts:75

Returns information about a system for a given Twitch ID or username, or null if no system is associated with the given ID. This attempts to use cached data first, but will load fresh data if no cached data exists, or the cached data is expired. Note: This function will never throw an exception. If an API request fails, it will fall back to cached data, or return null if no cached data exists.

Parameters

id

TwitchId

Returns

Promise<System | null>