Method GetVanityInviteAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetVanityInviteAsync(CancellationToken)
Gets the vanity invite for this guild.
public Task<DiscordInvite> GetVanityInviteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordInvite>
A partial vanity invite.
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageGuild permission.
- ServerErrorException
Thrown when Discord is unable to process the request.