Skip to content

Interface: PollData ​

Extends ​

Properties ​

allow_vote_change ​

ts
allow_vote_change: boolean;

app_uuid ​

ts
app_uuid: string;

chat_command ​

ts
chat_command: string;

chat_voting_enabled ​

ts
chat_voting_enabled: boolean;

choices ​

ts
choices: PollChoice[];

duration ​

ts
duration: number;

ended_at ​

ts
ended_at: string;

id ​

ts
id: number;

max_choices ​

ts
max_choices: number;

participation_mode? ​

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

Inherited from ​

NativeVoteState.participation_mode


results ​

ts
results: PollTally[];

Final results, set when the poll ends.


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;

started_at ​

ts
started_at: string;

status ​

ts
status: PollStatuses;

tallies ​

ts
tallies: PollTally[];

Live tallies (votes per choice).


title ​

ts
title: string;