Constructor: pollAnswerVoters

Back to constructors index

A poll answer, and how users voted on it

Attributes:

Name Type Required Description
chosen Bool Optional Whether we have chosen this answer
correct Bool Optional For quizes, whether the option we have chosen is correct
option bytes Yes The param that has to be passed to messages.sendVote.
voters int Yes How many users voted for this option

Type: PollAnswerVoters

Example:

$pollAnswerVoters = ['_' => 'pollAnswerVoters', 'chosen' => Bool, 'correct' => Bool, 'option' => 'bytes', 'voters' => int];

Or, if you’re into Lua:

pollAnswerVoters={_='pollAnswerVoters', chosen=Bool, correct=Bool, option='bytes', voters=int}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.