Table of Contents

Method GetAllMembersAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetAllMembersAsync(CancellationToken)

Retrieves a full list of members from Discord. This method will bypass cache.

public Task<IReadOnlyCollection<DiscordMember>> GetAllMembersAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<IReadOnlyCollection<DiscordMember>>

A collection of all members in this guild.

Exceptions

ServerErrorException

Thrown when Discord is unable to process the request.