All tools / Invite

OAuth2 scope and install-context URL

Build a discord.com/oauth2/authorize URL from scopes named in the docs, with integration_type for guild or user install.

Provided links hide scopes

A Discord Provided Link is https://discord.com/oauth2/authorize?client_id=... with no scopes in the query. Default Install Settings fill them in, and only bot and applications.commands are allowed. A custom URL can also request applications.commands.permissions.update (command permission edits need a user Bearer token), identify, role_connections.write, and gdm.join (group DM add recipient). integration_type is 0 for guild install and 1 for user install. This page does not call Discord.

Related: OAuth2 invite URL builder · Installation and interaction context planner