Table of Contents

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

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<Dictionary<DiscordRole, int>>

Exceptions

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.