Class MessagePoll
- Namespace
- NetCord
- Assembly
- NetCord.dll
Represents a poll within a message.
public class MessagePoll : IJsonModel<JsonMessagePoll>
- Inheritance
-
MessagePoll
- Implements
- Inherited Members
Constructors
MessagePoll(JsonMessagePoll)
public MessagePoll(JsonMessagePoll jsonModel)
Parameters
jsonModelJsonMessagePoll
Properties
AllowMultiselect
Whether a user can submit multiple answers to the poll.
public bool AllowMultiselect { get; }
Property Value
Answers
The set of answers available in the poll.
public IReadOnlyList<MessagePollAnswer> Answers { get; }
Property Value
ExpiresAt
A timestamp specifying the poll's expiry date.
public DateTimeOffset? ExpiresAt { get; }
Property Value
LayoutType
The poll's displayed layout type.
public MessagePollLayoutType LayoutType { get; }
Property Value
Question
The question displayed in the poll.
public MessagePollMedia Question { get; }
Property Value
Results
The poll's results.
public MessagePollResults? Results { get; }