TwurpleAuthenticationGetting dataExamplesFAQMigration

Main classes

HelixGame

A game as displayed on Twitch.

Overview

Properties

boxArtUrl

Type: string

The URL of the box art of the game.

id

Type: string

The ID of the game.

igdbId

Type: string | null

The IGDB ID of the game, or null if the game doesn't have an IGDB ID assigned at Twitch.

name

Type: string

The name of the game.

Methods

getBoxArtUrl(width, height)

Builds the URL of the box art of the game using the given dimensions.

ParameterTypeRequiredDefaultDescription
widthnumbernone

The width of the box art.

heightnumbernone

The height of the box art.

Return type: string

getStreams(pagination)

async

Gets streams that are currently playing the game.

ParameterTypeRequiredDefaultDescription
paginationHelixPaginationnonesee below
pagination.afterstringnone

A cursor to get the following page of.

pagination.beforestringnone

A cursor to get the previous page of.

pagination.limitnumbernone

The number of results per page.

getStreamsPaginated()

Creates a paginator for streams that are currently playing the game.

Return type: HelixPaginatedRequest<HelixStreamData, HelixStream>