Table of Contents

Method AddAnswers

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

AddAnswers(params DiscordPollAnswer[])

Adds answers to a poll, up to 10 answers.

public DiscordPollBuilder AddAnswers(params DiscordPollAnswer[] answers)

Parameters

answers DiscordPollAnswer[]

The answers to add to the poll.

Returns

DiscordPollBuilder

The current builder to be chained.

Exceptions

ArgumentOutOfRangeException

No answers were passed.

AddAnswers(params string[])

Adds answers without emoji to a poll, up to 10 answers.

public DiscordPollBuilder AddAnswers(params string[] answers)

Parameters

answers string[]

The answers to add to the poll.

Returns

DiscordPollBuilder

The current builder to be chained.

AddAnswers(IEnumerable<DiscordPollAnswer>)

Adds answers to a poll, up to 10 answers.

public DiscordPollBuilder AddAnswers(IEnumerable<DiscordPollAnswer> answers)

Parameters

answers IEnumerable<DiscordPollAnswer>

The answers to add to the message.

Returns

DiscordPollBuilder

The current builder to be chained.

Exceptions

ArgumentOutOfRangeException

No answers were passed.