Table of Contents

Method GetAllPollAnswerVotersAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

GetAllPollAnswerVotersAsync(int, CancellationToken)

Retrieves a full list of users that voted a specified answer on a poll. This will execute one API request per 100 entities.

public IAsyncEnumerable<DiscordUser> GetAllPollAnswerVotersAsync(int answerId, CancellationToken cancellationToken = default)

Parameters

answerId int

The id of the answer to get the voters of.

cancellationToken CancellationToken

Cancels the enumeration before the next api request

Returns

IAsyncEnumerable<DiscordUser>

A collection of all users that voted the specified answer on the poll.

Exceptions

ServerErrorException

Thrown when Discord is unable to process the request.