Table of Contents

Method GenerateOAuth2Url

Namespace
DisCatSharp.Extensions.OAuth2Web
Assembly
DisCatSharp.Extensions.OAuth2Web.dll

GenerateOAuth2Url(ulong, IEnumerable<string>, bool)

Generates an OAuth2 url and ads it to the pending urls.

public Uri GenerateOAuth2Url(ulong userId, IEnumerable<string> scopes, bool suppressPrompt = false)

Parameters

userId ulong

The user to generate the url for.

scopes IEnumerable<string>

The scopes to request.

suppressPrompt bool

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

Returns

Uri