Games
| Function | Returns |
|---|---|
getGamesByIds | Promise<Array<Game>> |
getGamesByNames | Promise<Array<Game>> |
getGamesByIgdbIds | Promise<Array<Game>> |
getGameById | Promise<Game | null> |
getGameByName | Promise<Game | null> |
getGameByIgdbId | Promise<Game | null> |
getGameByIdBatched | Promise<Game | null> |
getGameByNameBatched | Promise<Game | null> |
getGameByIgdbIdBatched | Promise<Game | null> |
getTopGames | Promise<PaginatedResult<Game>> |
Functions
getGamesByIds
twitch.game.getGamesByIds(gameIds: Array<string>): Promise<Array<Game>>
getGamesByNames
twitch.game.getGamesByNames(gameNames: Array<string>): Promise<Array<Game>>
getGamesByIgdbIds
twitch.game.getGamesByIgdbIds(igdbIds: Array<string>): Promise<Array<Game>>
getGameById
twitch.game.getGameById(gameId: string): Promise<Game | null>
getGameByName
twitch.game.getGameByName(gameName: string): Promise<Game | null>
getGameByIgdbId
twitch.game.getGameByIgdbId(igdbId: string): Promise<Game | null>
getGameByIdBatched
twitch.game.getGameByIdBatched(gameId: string): Promise<Game | null>
getGameByNameBatched
twitch.game.getGameByNameBatched(gameName: string): Promise<Game | null>
getGameByIgdbIdBatched
twitch.game.getGameByIgdbIdBatched(igdbId: string): Promise<Game | null>
getTopGames
twitch.game.getTopGames(pagination?: Pagination): Promise<PaginatedResult<Game>>
Types
Game
type Game = {
id: string
name: string
boxArtUrl: string
igdbId: string
}
PaginatedResult
type PaginatedResult<T> = {
data: Array<T>
cursor?: string
}
Pagination
interface Pagination {
limit?: number
after?: string
before?: string
}