Method GetAllMembersAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
GetAllMembersAsync(CancellationToken)
Retrieves a full list of members from Discord. This method will bypass cache. This will execute one API request per 1000 entities.
public IAsyncEnumerable<DiscordMember> GetAllMembersAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancels the enumeration before the next api request
Returns
- IAsyncEnumerable<DiscordMember>
A collection of all members in this guild.
Exceptions
- ServerErrorException
Thrown when Discord is unable to process the request.