Class DiscordPollBuilder
- Namespace
 - DSharpPlus.Entities
 
- Assembly
 - DSharpPlus.dll
 
Represents a builder for DiscordPolls.
public class DiscordPollBuilder
  - Inheritance
 - 
      
      DiscordPollBuilder
 
Constructors
Properties
- Duration
 Gets or sets the duration for this poll in hours.
- IsMultipleChoice
 Gets or sets whether this poll is multiple choice.
- Options
 Gets the options for this poll.
- Question
 Gets or sets the question for this poll.
Methods
- AddOption(string, DiscordComponentEmoji?)
 Adds an option to this poll.
- AsMultipleChoice(bool)
 Sets whether this poll is multiple choice.
- WithDuration(int)
 Sets the expiry date for this poll.
- WithQuestion(string)
 Sets the question for this poll.