Method GetGuildsAfterAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
GetGuildsAfterAsync(ulong, int, bool?, CancellationToken)
Returns a list of guilds after a certain guild. This will execute one API request per 200 guilds.
The amount of guilds to fetch.The ID of the guild after which we fetch the guilds.Whether to include approximate member and presence counts in the returned guilds.Cancels the enumeration before doing the next api requestpublic IAsyncEnumerable<DiscordGuild> GetGuildsAfterAsync(ulong after, int limit = 200, bool? withCount = null, CancellationToken cancellationToken = default)
Parameters
after
ulonglimit
intwithCount
bool?cancellationToken
CancellationToken
Returns
- IAsyncEnumerable<DiscordGuild>
Exceptions
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.