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
userIdulongThe user to generate the url for.
scopesIEnumerable<string>The scopes to request.
suppressPromptboolWhether to suppress the prompt. Works only if previously authorized with same scopes.