Method GetVanityInviteAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
GetVanityInviteAsync()
Gets the vanity invite for this guild.
public Task<DiscordInvite> GetVanityInviteAsync()
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.