Table of Contents

Method GenerateOAuth2Url

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

GenerateOAuth2Url(string, string, bool)

Generates an OAuth2 url.

public Uri GenerateOAuth2Url(string scopes, string state, bool suppressPrompt = false)

Parameters

scopes string

The space seperated scopes to request.

state string

The state to use for security reasons. Use GenerateState() or GenerateSecureState(ulong).

suppressPrompt bool

Whether to suppress the prompt. Works only if previously authorized with same scopes.

Returns

Uri

The OAuth2 url