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
callbackResultDiscordOAuthCallbackResultThe callback result to inspect.
Returns
Remarks
Linked-role connection updates require a successful OAuth callback that granted role_connections.write.
Exceptions
- ArgumentNullException
callbackResultis null.