Table of Contents

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

jsonModel JsonMessagePoll

Properties

AllowMultiselect

Whether a user can submit multiple answers to the poll.

public bool AllowMultiselect { get; }

Property Value

bool

Answers

The set of answers available in the poll.

public IReadOnlyList<MessagePollAnswer> Answers { get; }

Property Value

IReadOnlyList<MessagePollAnswer>

ExpiresAt

A timestamp specifying the poll's expiry date.

public DateTimeOffset? ExpiresAt { get; }

Property Value

DateTimeOffset?

LayoutType

The poll's displayed layout type.

public MessagePollLayoutType LayoutType { get; }

Property Value

MessagePollLayoutType

Question

The question displayed in the poll.

public MessagePollMedia Question { get; }

Property Value

MessagePollMedia

Results

The poll's results.

public MessagePollResults? Results { get; }

Property Value

MessagePollResults