Inviting your bot

So, you’ve made the bot account, but it is not actually in any server. If you want to invite your bot you must create an invite URL for it.

  1. Make sure you’re logged on to the Discord website.

  2. Navigate to the application page.

  3. Click on your bot’s page.

  4. Go to the OAuth2 tab.

    ../_images/0011.png
  5. Tick the bot checkbox under scopes.

    ../_images/0021.png

    If you would like to integrate slash commands and other interactions into your bot, make sure to check the applications.commands scope as well.

    ../_images/0031.png
  6. Tick the permissions required for your bot to function under Bot Permissions.

    • Please be aware of the consequences of requiring your bot to have the Administrator permission.

    • Bot owners must have 2FA enabled for certain actions and permissions when added in servers that have Server-Wide 2FA enabled. Check the 2FA support page for more information.

    ../_images/0041.png
  7. Now the resulting URL can be used to add your bot to a server. Copy and paste the URL into your browser, choose a server to invite the bot to, and click Authorize.

Note

The person adding the bot needs “Manage Server” permissions to do so.

If you want to generate this URL dynamically at run-time inside your bot and using the disnake.Permissions interface, you can use disnake.utils.oauth_url().