1️Setting Up

Before you start, you need to create a Discord application and bot.

Step 1: Enable Discord Developer Mode

  1. Open Discord.

  2. Go to User SettingsAdvanced.

  3. Enable Developer Mode.

Step 2: Create a Discord Application

  1. Click New Application and give it a name.

  2. Go to OAuth2 → Redirects and add a redirect URL:

    https://yourdomain.com/callback

    or

    http://your_server_ip:port/callback

    if you are not using a domain.

  3. Save your Client ID and Client Secret.

Step 3: Create and Configure the Bot

  1. In the Bot section, click Add Bot.

  2. Save your Bot Token.

  3. Enable Privileged Gateway Intents:

    • Enable the following intents in the bot settings:

      • SERVER MEMBERS INTENT

      • MESSAGE CONTENT INTENT

      • PRESENCE INTENT

      • application.commands you have to check this option when inviting bot to your server

  4. Make sure your bot has at least the following permissions:

    • Read Messages

    • Send Messages

    • Manage Roles (if you want to use role synchronization)

  5. Invite the bot to your Discord server using the OAuth2 URL generator.


Last updated