Method GetMemberCountsAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetMemberCountsAsync(CancellationToken)
Gets the number of members in each role.
public Task<Dictionary<DiscordRole, int>> GetMemberCountsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.