Method GetInAppOAuth
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetInAppOAuth(Permissions, OAuthScopes, string?, bool, ulong?, string?, string?, string?, bool, string?)
Gets the In-App OAuth Url for the current application.
public Uri GetInAppOAuth(Permissions permissions = Permissions.None, OAuthScopes scopes = OAuthScopes.BOT_DEFAULT, string? redir = null, bool user_install = false, ulong? guild_id = null, string? state = null, string? access_type = null, string? response_type = null, bool prompt = true, string? manual_scopes = null)
Parameters
permissionsPermissionsDefaults to None.
scopesOAuthScopesThe scopes to send with the request. Defaults to BOT_DEFAULT. Mutually exclusive to
manual_scopes.redirstringRedirect Uri.
user_installboolWhether to install as user app.
guild_idulong?The guild id to pre-select.
statestringThe state to send with the request.
access_typestringThe access type to send with the request (offline|online).
response_typestringThe response type to send with the request (code|token).
promptboolWhether to prompt the user for authorization.
manual_scopesstringThe scopes to send with the request. Mutually exclusive to
scopes.
Returns
- Uri
The OAuth Url