Table of Contents

Method OAuth2UpdateApplicationRoleConnectionAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

OAuth2UpdateApplicationRoleConnectionAsync(DiscordOAuth2Client, string, string, ApplicationRoleConnectionMetadata)

Updates the current user's application role connection.

Requires a DiscordAccessToken set in AccessToken.

public Task<DiscordApplicationRoleConnection> OAuth2UpdateApplicationRoleConnectionAsync(DiscordOAuth2Client oauth2Client, string platformName, string platformUsername, ApplicationRoleConnectionMetadata metadata)

Parameters

oauth2Client DiscordOAuth2Client

The oauth2 client.

platformName string

The platform name.

platformUsername string

The platform username.

metadata ApplicationRoleConnectionMetadata

The metadata.

Returns

Task<DiscordApplicationRoleConnection>

Exceptions

NullReferenceException

Thrown when AccessToken is not present.