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
intThe id of the answer to get the voters of.
cancellationToken
CancellationTokenCancels 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.