hikari.polls
#
Entities that are used to describe polls on Discord.
Poll #
Represents an existing poll.
allow_multiselect class-attribute
instance-attribute
#
Whether a user can select multiple answers.
answers class-attribute
instance-attribute
#
answers: Sequence[PollAnswer] = field(repr=True)
The answers attached to the poll.
expiry class-attribute
instance-attribute
#
The expiry time for the poll.
layout_type class-attribute
instance-attribute
#
layout_type: PollLayoutType = field(repr=True)
The type of layout the poll uses.
question class-attribute
instance-attribute
#
The question of the poll.
results class-attribute
instance-attribute
#
results: PollResult | None = field(repr=True)
The results of the poll.
PollAnswer #
PollAnswerCount #
Represents the count of a poll answer.
count class-attribute
instance-attribute
#
The number of votes for this answer.
PollLayoutType #
PollMedia #
Common object backing a poll's questions and answers.
PollResult #
Represents a poll result.