hikari.events.poll_events
#
Events related to polls.
BasePollVoteEvent #
Bases: ShardEvent
Event base for any event that involves a user voting on a poll.
answer_id class-attribute
instance-attribute
#
ID of the answer that the user voted for.
app class-attribute
instance-attribute
#
App instance for this application.
channel_id class-attribute
instance-attribute
#
ID of the channel that the poll is in.
guild_id class-attribute
instance-attribute
#
ID of the guild that the poll is in.
message_id class-attribute
instance-attribute
#
ID of the message that the poll is in.
shard class-attribute
instance-attribute
#
shard: GatewayShard = field(metadata={SKIP_DEEP_COPY: True})
Shard that received this event.
PollVoteCreateEvent #
Bases: BasePollVoteEvent
Event that is fired when a user add their vote to a poll.
If the poll allows multiple selection, one event will be fired for each vote.
PollVoteDeleteEvent #
Bases: BasePollVoteEvent
Event that is fired when a user remove their vote to a poll.
If the poll allows multiple selection, one event will be fired for each vote.