Discord

Add to a server

Setting an application up to install from here

In the Developer Portal, for the application:

  1. Installation → Installation Contexts: Guild Install only. Untick User Install.
  2. Installation → Install Link: Custom URL, set to
    Do this first — Discord will not make a bot private while its install link is Discord’s own.
  3. Bot → Public Bot: off, so only you can add it.
  4. Bot → Requires OAuth2 Code Grant: off. This page cannot exchange a code, and with that on the bot would never join.
  5. OAuth2 → Redirects: add
    Exactly as shown, without the ?app= part of the install link, then Save Changes. Scheme, host and path all count, and www. is a different host. Redirects are per application: each one installed from here needs its own copy.

“Invalid OAuth2 redirect_uri” from Discord means the redirect in the last step is missing or differs from the one above by as much as a character.

Another application is added to this page in the site build — DEFAULT_DISCORD_APPS in site/build.js, or the DISCORD_APPS_JSON variable; the README has the steps. Only the applications listed there can be installed from here.