Poll entity
A poll attached to a Hunter.Status
Fields
id- the ID of the pollexpires_at- when the poll ends, if it has an endexpired- whether the poll is currently expiredmultiple- whether the poll allows multiple-choice answersvotes_count- how many votes have been receivedvoters_count- how many unique accounts have voted,nilwhen the poll is not multiple-choiceoptions- list ofHunter.Poll.Option, the possible answersemojis- list ofHunter.Emoji, custom emoji used in the optionsvoted- whether the authenticated user has voted (only with user token)own_votes- which options the authenticated user chose, by index (only with user token)
Summary
Types
@type t() :: %Hunter.Poll{ emojis: [Hunter.Emoji.t()], expired: boolean(), expires_at: String.t() | nil, id: String.t(), multiple: boolean(), options: [Hunter.Poll.Option.t()], own_votes: [non_neg_integer()] | nil, voted: boolean() | nil, voters_count: non_neg_integer() | nil, votes_count: non_neg_integer() }