Method GenerateOAuthUri
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
GenerateOAuthUri(string?, DiscordPermissions, params DiscordOAuthScope[])
Generates a new OAuth2 URI for this application.
public string GenerateOAuthUri(string? redirectUri = null, DiscordPermissions permissions = default, params DiscordOAuthScope[] scopes)
Parameters
redirectUri
stringRedirect URI - the URI Discord will redirect users to as part of the OAuth flow.
This URI must be already registered as a valid redirect URI for your application on the developer portal. permissions
DiscordPermissionsPermissions for your bot. Only required if the Bot scope is passed.
scopes
DiscordOAuthScope[]OAuth scopes for your application.