How to Create a Discord Bot Token ?

How to Create a Discord Bot Token

If you purchased or are using a CJM.dev Discord bot, you will need to create a Discord Bot Token. The token allows the bot to connect to Discord and run on your server.

Follow the steps below to create your bot.


Step 1: Go to the Discord Developer Portal

Open the Discord Developer Portal in your browser.

Log in with your Discord account if you are not already logged in.


Step 2: Create a New Application

Click "New Application" in the top right.

Give your application a name (this will usually be your bot’s name).

Click Create.


Step 3: Create the Bot

On the left sidebar, click "Bot".

Then click "Add Bot" and confirm.

Your Discord application is now a bot account.


Step 4: Copy the Bot Token

Inside the Bot section, find Token.

Click Reset Token or Copy Token and save it somewhere safe.

⚠️ Important: Never share your bot token with anyone. Anyone with the token can control your bot.


Step 5: Enable Required Intents

Still inside the Bot page, scroll down to Privileged Gateway Intents.

Enable the intents your bot may require, such as:

  • Presence Intent

  • Server Members Intent

  • Message Content Intent

(Some CJM.dev bots may require these to function correctly.)


Step 6: Invite the Bot to Your Server

Go to the OAuth2 → URL Generator section.

Under Scopes, select:

  • bot

  • applications.commands

Under Bot Permissions, select the permissions your bot needs (for example: Send Messages, Manage Messages, Administrator, etc.).

Copy the generated link, open it in your browser, and invite the bot to your server.


Using the Token

Once you have your token, place it in the config file of the bot provided by CJM.dev.

Example:

Save the file and start the bot.


Need Help?

If you have issues setting up your bot or need custom features, automation, or bot customization, you can open a support ticket in the CJM.dev Discord and our team will help you.

Last updated