ENUM

CreatePredictionEventErrorCode

Possible error codes from the createPredictionEvent mutation.

link GraphQL Schema definition

1enum CreatePredictionEventErrorCode {
2
3# The current user is forbidden from creating Prediction Events on the specified
4# channel.
5FORBIDDEN
6
7# User attempted to create a Prediction Event with restricted content.
8AUTOMOD_FAILED
9
10# There is already an active or pending Prediction Event on the channel. The Event
11# must be resolved before a new
12# Prediction Event can be created.
13EVENT_ALREADY_ACTIVE
14
15# Channel Points are not enabled on this channel.
16CHANNEL_POINTS_NOT_ENABLED
17
18# The colors chosen for each Option must be unique.
19COLORS_NOT_UNIQUE
20
21# Events must have at least 2 Outcomes.
22NOT_ENOUGH_OUTCOMES
23
24# Events have a maximum number of Outcomes.
25TOO_MANY_OUTCOMES
26
27# The specified Prediction Window is invalid. Prediction window must be positive.
28# Prediction window has a maximum.
29INVALID_PREDICTION_WINDOW
30
31# An unknown error occurred.
32UNKNOWN
33}