Table of Contents

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

permissions Permissions

Defaults to None.

scopes OAuthScopes

The scopes to send with the request. Defaults to BOT_DEFAULT. Mutually exclusive to manual_scopes.

redir string

Redirect Uri.

user_install bool

Whether to install as user app.

guild_id ulong?

The guild id to pre-select.

state string

The state to send with the request.

access_type string

The access type to send with the request (offline|online).

response_type string

The response type to send with the request (code|token).

prompt bool

Whether to prompt the user for authorization.

manual_scopes string

The scopes to send with the request. Mutually exclusive to scopes.

Returns

Uri

The OAuth Url