Table of Contents

Class PollProperties

Namespace
Discord
Assembly
Discord.Net.Core.dll

Properties used to create a poll.

public class PollProperties
Inheritance
PollProperties
Inherited Members

Properties

AllowMultiselect

Gets or sets whether the poll allows multiple answers.

public bool AllowMultiselect { get; set; }

Property Value

bool

Answers

Gets or sets the answers for the poll.

public List<PollMediaProperties> Answers { get; set; }

Property Value

List<PollMediaProperties>

Duration

Gets or sets the duration for the poll in hours. Max duration is 168 hours (7 days).

public uint Duration { get; set; }

Property Value

uint

LayoutType

Gets or sets the layout type for the poll.

public PollLayout LayoutType { get; set; }

Property Value

PollLayout

Question

Gets or sets the question for the poll.

public PollMediaProperties Question { get; set; }

Property Value

PollMediaProperties