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
- Visit the Discord Developer Portal.
- Click on "New Application".
- Give your application a name and click "Create".
π€ Step 2: Enable Bot Features
- Navigate to the "Bot" tab in the left-hand sidebar.
- Click "Add Bot" and confirm.
- 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:
- On the same "Bot" tab, click "Reset Token".
- Copy the generated Bot Token and keep it in a secure place.
π Step 4: Add the Bot to Your Server
-
Go to the "Installation" tab
-
Optionally, disable the "User Install" option if you donβt want regular users to install the bot.
-
Under Scopes, check "bot".
-
Scroll down to Bot Permissions and select:
- Read Message History
- Send Messages
-
Copy the generated invite link from the bottom.
-
Open the link in your browser and select the server where you want to install the bot.
-
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