TwurpleAuthenticationGetting dataExamplesFAQMigration

Main classes

HelixPrediction

A channel prediction.

Overview

Properties

autoLockAfter

Type: number

The time after which the prediction will be automatically locked, in seconds from creation.

broadcasterDisplayName

Type: string

The display name of the broadcaster.

broadcasterId

Type: string

The ID of the broadcaster.

broadcasterName

Type: string

The name of the broadcaster.

creationDate

Type: Date

The date when the prediction started.

endDate

Type: Date | null

The date when the prediction ended, or null if it didn't end yet.

id

Type: string

The ID of the prediction.

lockDate

Type: Date | null

The date when the prediction was locked, or null if it wasn't locked yet.

outcomes

Type: HelixPredictionOutcome[]

The possible outcomes of the prediction.

status

Type: HelixPredictionStatus

The status of the prediction.

title

Type: string

The title of the prediction.

winningOutcome

Type: HelixPredictionOutcome | null

The winning outcome, or null if the prediction is currently running or was canceled.

winningOutcomeId

Type: string | null

The ID of the winning outcome, or null if the prediction is currently running or was canceled.

Methods

getBroadcaster()

async

Gets more information about the broadcaster.

Return type: HelixUser