Table of Contents

Method OAuth2GetAuthorizationInfoAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

OAuth2GetAuthorizationInfoAsync(DiscordOAuth2Client)

Gets the current user's authorization info.

Requires a DiscordAccessToken set in AccessToken.

public Task<DiscordAuthorizationInformation> OAuth2GetAuthorizationInfoAsync(DiscordOAuth2Client oauth2Client)

Parameters

oauth2Client DiscordOAuth2Client

The oauth2 client.

Returns

Task<DiscordAuthorizationInformation>

Exceptions

NullReferenceException

Thrown when AccessToken is not present.