@twurple/api
Version:
Interact with Twitch's API.
29 lines • 799 B
TypeScript
/**
* The different statuses a poll can have.
*/
export type HelixPollStatus = 'ACTIVE' | 'COMPLETED' | 'TERMINATED' | 'ARCHIVED' | 'MODERATED' | 'INVALID';
/** @private */
export interface HelixPollChoiceData {
id: string;
title: string;
votes: number;
channel_points_votes: number;
bits_votes: number;
}
/** @private */
export interface HelixPollData {
id: string;
broadcaster_id: string;
broadcaster_login: string;
broadcaster_name: string;
title: string;
choices: HelixPollChoiceData[];
bits_voting_enabled: boolean;
bits_per_vote: number;
channel_points_voting_enabled: boolean;
channel_points_per_vote: number;
status: HelixPollStatus;
duration: number;
started_at: string;
}
//# sourceMappingURL=poll.external.d.ts.map