Bot Token
This guide walks you through creating a Discord application, obtaining your bot token, and generating an invite link.
Create a Discord Application
- Go to the Discord Developer Portal.
- Click New Application in the top-right corner.
- Enter a name for your application (e.g., "MJ Bot") and click Create.
Get the Bot Token
- In the left sidebar, click Bot.
- Click Add Bot and confirm.
- Under the Token section, click Reset Token (or Copy if shown).
- Copy the token and save it somewhere secure.
Never share your bot token. Anyone with access to it can control your bot. If your token is ever leaked, reset it immediately from the Developer Portal.
Enable Privileged Gateway Intents
MJ Bot requires all three privileged intents to function correctly. On the Bot page, scroll down to Privileged Gateway Intents and enable:
- Presence Intent -- Required for status tracking and activity features
- Server Members Intent -- Required for welcome/goodbye, leveling, anti-raid, and moderation
- Message Content Intent -- Required for prefix commands, automod, and message-based features
If you forget to enable these intents, the bot will fail to start or many features will not work.
Get the Client ID and Client Secret
- In the left sidebar, click OAuth2 > General.
- Copy the Client ID -- you will need this for both the bot and dashboard configuration.
- Copy the Client Secret -- you will need this for the dashboard OAuth2 login.
Generate the Invite URL
- In the left sidebar, click OAuth2 > URL Generator.
- Under Scopes, select:
botapplications.commands
- Under Bot Permissions, select Administrator.
Administrator is recommended so all features work without permission issues. If you prefer granular permissions, you will need to enable at minimum: Manage Server, Manage Roles, Manage Channels, Kick Members, Ban Members, Manage Messages, Embed Links, Attach Files, Read Message History, Add Reactions, Use External Emojis, Connect, Speak, and Move Members.
- Copy the generated URL at the bottom of the page.
- Save this URL -- you will use it later to invite the bot to your server.