Table of Contents
API reference

Method HasRoleConnectionsWriteScope

Namespace
DisCatSharp.Hosting.AspNetCore.LinkedRoles
Assembly
DisCatSharp.Hosting.AspNetCore.dll

HasRoleConnectionsWriteScope(DiscordOAuthCallbackResult)

Gets a value indicating whether a callback result contains the required role_connections.write scope.

public bool HasRoleConnectionsWriteScope(DiscordOAuthCallbackResult callbackResult)

Parameters

callbackResult DiscordOAuthCallbackResult

The callback result to inspect.

Returns

bool

true when the granted scope contains role_connections.write.

Remarks

Linked-role connection updates require a successful OAuth callback that granted role_connections.write.

Exceptions

ArgumentNullException

callbackResult is null.