Struct Poll
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
Represents a poll object.
public readonly struct Poll
- Inherited Members
Fields
AllowMultiselect
Gets whether the poll allows multiple answers.
public readonly bool AllowMultiselect
Field Value
Answers
Gets the answers for the poll.
public readonly IReadOnlyCollection<PollAnswer> Answers
Field Value
ExpiresAt
Gets the expiration date for the poll.
public readonly DateTimeOffset ExpiresAt
Field Value
LayoutType
Gets the layout type for the poll.
public readonly PollLayout LayoutType
Field Value
Question
Gets the question for the poll.
public readonly PollMedia Question
Field Value
Results
Gets the results of the poll. This is null if the poll is not finalized.
public readonly PollResults? Results