twitcheasy-twitch-bottwitch-authtwitch-auth-tmitwitch-chat-clienttwitch-eventsubtwitch-pubsub-clienttwitch-webhooks
Welcome

EventSubChannelPredictionEndEvent

An EventSub event representing a prediction being locked in a channel.

Overview

Properties

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.

id

Type: string

The ID of the prediction.

lockDate

Type: Date

The time when the prediction was locked.

outcomes

Type: Array<EventSubChannelPredictionOutcome>

The possible outcomes of the prediction.

startDate

Type: Date

The time when the prediction started.

status

Type: EventSubChannelPredictionEndStatus

The status of the prediction.

title

Type: string

The title of the prediction.

winningOutcome

Type: EventSubChannelPredictionOutcome | null

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

winningOutcomeId

Type: string | null

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

Methods

getBroadcaster()

async

Retrieves more information about the broadcaster.

Return type: HelixUser