How to Create Discord Bot

Step 1: Create a New Application & Bot

  1. Click New Application and give your bot a name.

  2. In the left sidebar, go to the Bot tab and click Add Bot.

  3. Click Reset Token and copy your bot token. Keep this token safe! You’ll need it to run your bot.

Step 2: Enable Privileged Intents

  1. In the Bot tab, scroll down to the Privileged Gateway Intents section.

  2. Enable the following intents by toggling them on:

    • Presence Intent

    • Server Members Intent

    • Message Content Intent

  3. Click Save Changes at the bottom.

  1. Go to the OAuth2 tab, then select URL Generator in the sidebar.

  2. Under Scopes, check:

    • bot

    • applications.commands

  3. Under Bot Permissions, select the permissions your bot needs. For most bots, you’ll want:

    • Administrator (gives all permissions, use with caution)

    • Or select specific permissions like:

      • Manage Roles

      • Send Messages

      • Read Message History

      • Use Slash Commands

  4. Copy the generated URL at the bottom of the page.

  5. Paste the URL into your browser and invite your bot to your Discord server.


Your bot is now created and invited! Next, use your bot token in your code to bring your bot online.

Last updated