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
stringThe text for the option. Null may be passed if
emoji
is passed instead.emoji
DiscordComponentEmojiAn optional emoji for the poll.
Returns
- DiscordPollBuilder
The modified builder to chain calls with.