Link Search Menu Expand Document

Constructor: pollAnswerVoters

Back to constructors index

A poll answer, and how users voted on it

Attributes:

NameTypeRequiredDescription
chosenBoolOptionalWhether we have chosen this answer
correctBoolOptionalFor quizzes, whether the option we have chosen is correct
optionbytesYesThe param that has to be passed to messages.sendVote.
votersintYesHow many users voted for this option

Type: PollAnswerVoters

Example:

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