OBJECT
PredictionEvent
An Event that users can make Predictions on.
link GraphQL Schema definition
1 type PredictionEvent { 2 3 # The channel that the Prediction Event belongs to. Null if this is Event is not 4 # tied to a channel. 5 Channel : 6 7 # The timestamp of when the Event was created. 8 Time! : 9 10 # The creator of the Event. Null if the Event was created by an automatic process 11 # or an admin. 12 PredictionEventActor : 13 14 # The timestamp of when the Event was resolved or canceled. Null if the Event is 15 # not resolved or canceled yet. 16 Time : 17 18 # The user or extension that resolved or canceled the Event. Null if this was 19 # triggered by an automatic process or 20 # by an admin, or if the Event is not resolved or canceled yet. 21 PredictionEventActor : 22 23 # Unique identifier of the Prediction Event. 24 ID! : 25 26 # The timestamp of when the Event was locked. Null if the Event is still active. 27 Time : 28 29 # The user or extension that locked the Event. Null if this was triggered by an 30 # automatic process or by an admin, 31 # or if the Event is stillactive. 32 PredictionEventActor : 33 34 # The Outcomes available for predicting in this Event. 35 PredictionOutcome!]! : [ 36 37 # The length of the prediction window (the duration that the Event accepts 38 # predictions) in seconds. 39 Int! : 40 41 # The relationship between this Prediction Event and the logged in user. 42 PredictionEventSelfEdge : 43 44 # The current status of the Event. 45 PredictionEventStatus! : 46 47 # The title of the Event. 48 String! : 49 50 # The Outcome that ended up being selected as the "correct" Outcome. Null if the 51 # Event has not been resolved yet. 52 # This Outcome will also be present as one of the outcomes in the "outcomes" 53 # field. 54 PredictionOutcome : 55 56 }
link Required by
- CancelPredictionEventPayloadPayload for canceling a Prediction Evnet.
- ChannelA User's place on Twitch.
- CreatePredictionEventPayloadPayload for creating a prediction event.
- LockPredictionEventPayloadPayload from closing a prediciton event to new predictions.
- PredictionA single Prediction made by a user on a Prediction Event.
- PredictionEventEdgeElement in a list of Prediction Events.
- QueryRoot fields to access the Twitch API.
- ResolvePredictionEventPayloadPayload for resolving a prediciton event.