Skip to content

Interface: PredictionData ​

Extends ​

Properties ​

app_uuid ​

ts
app_uuid: string;

auto_cancel_after ​

ts
auto_cancel_after: number;

betting_enabled ​

ts
betting_enabled: boolean;

chat_betting_enabled ​

ts
chat_betting_enabled: boolean;

chat_command ​

ts
chat_command: string;

created_at ​

ts
created_at: string;

ended_at ​

ts
ended_at: string;

fixed_reward ​

ts
fixed_reward: number;

id ​

ts
id: number;

locked_at ​

ts
locked_at: string;

max_bet ​

ts
max_bet: number;

min_bet ​

ts
min_bet: number;

outcomes ​

ts
outcomes: PredictionOutcome[];

participation_mode? ​

ts
optional participation_mode?: "native" | "app_only";

Inherited from ​

NativeVoteState.participation_mode


prediction_window ​

ts
prediction_window: number;

results ​

ts
results: PredictionResult[];

Final results, set when the prediction is resolved.


results_visibility? ​

ts
optional results_visibility?: "live" | "after_end";

Inherited from ​

NativeVoteState.results_visibility


results_visible? ​

ts
optional results_visible?: boolean;

Inherited from ​

NativeVoteState.results_visible


revision? ​

ts
optional revision?: number;

Inherited from ​

NativeVoteState.revision


show_display ​

ts
show_display: boolean;

status ​

ts
status: PredictionStatuses;

tallies ​

ts
tallies: PredictionTally[];

Live tallies (participations per outcome).


title ​

ts
title: string;

winning_outcome_id ​

ts
winning_outcome_id: number;