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
Answers
Gets or sets the answers for the poll.
public List<PollMediaProperties> Answers { get; set; }
Property Value
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
LayoutType
Gets or sets the layout type for the poll.
public PollLayout LayoutType { get; set; }
Property Value
Question
Gets or sets the question for the poll.
public PollMediaProperties Question { get; set; }