Method GetInvitesAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetInvitesAsync(CancellationToken)
Gets all the invites created for all the channels in this guild.
public Task<IReadOnlyList<DiscordInvite>> GetInvitesAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<IReadOnlyList<DiscordInvite>>
A collection of invites.
Exceptions
- ServerErrorException
Thrown when Discord is unable to process the request.