Forward LogoForwardMsg

How to Create a Discord Bot

Step-by-step guide for setting up a Discord bot and retrieving the bot token.

πŸ”΄ Watch a Video Tutorial πŸŽ₯

This guide walks you through the steps to create a Discord bot, configure its permissions, and obtain the bot token required for integration.

πŸ”§ Step 1: Create the Bot Application

  1. Visit the Discord Developer Portal.
  2. Click on "New Application".
  3. Give your application a name and click "Create".

πŸ€– Step 2: Enable Bot Features

  1. Navigate to the "Bot" tab in the left-hand sidebar.
  2. Click "Add Bot" and confirm.
  3. Under Privileged Gateway Intents, enable the following:
    • Server Members Intent
    • Message Content Intent

Make sure to enable them before proceeding.

πŸ”‘ Step 3: Retrieve the Bot Token

To get the token that allows your app to authenticate:

  1. On the same "Bot" tab, click "Reset Token".
  2. Copy the generated Bot Token and keep it in a secure place.

πŸš€ Step 4: Add the Bot to Your Server

  1. Go to the "Installation" tab

  2. Optionally, disable the "User Install" option if you don’t want regular users to install the bot.

  3. Under Scopes, check "bot".

  4. Scroll down to Bot Permissions and select:

    • Read Message History
    • Send Messages
  5. Copy the generated invite link from the bottom.

  6. Open the link in your browser and select the server where you want to install the bot.

  7. Confirm the permissions and click "Authorize".


πŸŽ‰ Congratulations!

πŸŽ‰ That’s it! Your Discord bot is now created and ready to be used.

Need Help?

Contact us: @forwardmsg_support
Email us: support@forwardmsg.com

On this page