Table of Contents

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

bool

Answers

Gets the answers for the poll.

public readonly IReadOnlyCollection<PollAnswer> Answers

Field Value

IReadOnlyCollection<PollAnswer>

ExpiresAt

Gets the expiration date for the poll.

public readonly DateTimeOffset ExpiresAt

Field Value

DateTimeOffset

LayoutType

Gets the layout type for the poll.

public readonly PollLayout LayoutType

Field Value

PollLayout

Question

Gets the question for the poll.

public readonly PollMedia Question

Field Value

PollMedia

Results

Gets the results of the poll. This is null if the poll is not finalized.

public readonly PollResults? Results

Field Value

PollResults?