Table of Contents

Method AddOption

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

AddOption(string, DiscordComponentEmoji?)

Adds an option to this poll.

public DiscordPollBuilder AddOption(string text, DiscordComponentEmoji? emoji = null)

Parameters

text string

The text for the option. Null may be passed if emoji is passed instead.

emoji DiscordComponentEmoji

An optional emoji for the poll.

Returns

DiscordPollBuilder

The modified builder to chain calls with.