Table of Contents

Method OAuth2GetApplicationRoleConnectionAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

OAuth2GetApplicationRoleConnectionAsync(DiscordOAuth2Client)

Gets the current user's application role connection.

Requires a DiscordAccessToken set in AccessToken.

public Task<DiscordApplicationRoleConnection> OAuth2GetApplicationRoleConnectionAsync(DiscordOAuth2Client oauth2Client)

Parameters

oauth2Client DiscordOAuth2Client

The oauth2 client.

Returns

Task<DiscordApplicationRoleConnection>

Exceptions

NullReferenceException

Thrown when AccessToken is not present.