Overview
Properties
igdbId
Type: string | null
The IGDB ID of the game, or null if the game doesn't have an IGDB ID assigned at Twitch.
Methods
getBoxArtUrl(width, height)
Builds the URL of the box art of the game using the given dimensions.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
width | number | none | The width of the box art. | |
height | number | none | The height of the box art. |
Return type: string
getStreams(pagination)
asyncGets streams that are currently playing the game.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
pagination | HelixPagination | none | see below | |
pagination.after | string | none | A cursor to get the following page of. | |
pagination.before | string | none | A cursor to get the previous page of. | |
pagination.limit | number | none | The number of results per page. |
Return type: HelixPaginatedResult<HelixStream>
getStreamsPaginated()
Creates a paginator for streams that are currently playing the game.
Return type: HelixPaginatedRequest<HelixStreamData, HelixStream>