Method GetUserCountsAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetUserCountsAsync(IEnumerable<ulong>?, CancellationToken)
Gets user counts for this scheduled event and optionally specific exceptions.
public Task<DiscordScheduledEventUserCounts> GetUserCountsAsync(IEnumerable<ulong>? exceptionIds = null, CancellationToken cancellationToken = default)
Parameters
exceptionIdsIEnumerable<ulong>The exception ids to get counts for. Optional, if not provided only the count for the scheduled event will be returned.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordScheduledEventUserCounts>
User counts for the scheduled event and optionally the specified exceptions.
Exceptions
- NotFoundException
Thrown when the event does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.