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
DiscordOAuth2ClientThe oauth2 client.
platformName
stringThe platform name.
platformUsername
stringThe platform username.
metadata
ApplicationRoleConnectionMetadataThe metadata.
Returns
Exceptions
- NullReferenceException
Thrown when AccessToken is not present.