Discord Setup
This guide walks you through creating a Discord bot and obtaining the necessary credentials.
Prerequisites
Section titled “Prerequisites”- A Discord account
- Server Administrator permissions (to add the bot to your server)
Step 1: Create a Discord Application
Section titled “Step 1: Create a Discord Application”- Go to the Discord Developer Portal
- Click “New Application”
- Enter a name for your application (e.g., “JamBot”)
- Accept the Terms of Service
- Click “Create”
Step 2: Create the Bot User
Section titled “Step 2: Create the Bot User”- In your application, navigate to the “Bot” section in the left sidebar
- Click “Add Bot”
- Confirm by clicking “Yes, do it!”
Configure Bot Settings
Section titled “Configure Bot Settings”- Username: Set your bot’s username (e.g., “JamBot”)
- Icon: Upload an icon for your bot (optional)
- Public Bot: Toggle OFF if you want only you to add the bot to servers
Step 3: Get Your Bot Token
Section titled “Step 3: Get Your Bot Token”- In the “Bot” section, find the “TOKEN” section
- Click “Reset Token”
- Click “Yes, do it!” to confirm
- Copy the token (you’ll need this for your
.envfile)
Step 4: Enable Required Intents
Section titled “Step 4: Enable Required Intents”Discord requires you to enable specific “Privileged Gateway Intents” for your bot to function properly.
- Scroll down to “Privileged Gateway Intents”
- Enable the following intents:
- ✅ Message Content Intent (required to read message content)
- ✅ Server Members Intent (required for member-specific features)
- Click “Save Changes”
Step 5: Configure OAuth2 Permissions
Section titled “Step 5: Configure OAuth2 Permissions”- Navigate to the “OAuth2” section in the left sidebar
- Click on “URL Generator”
Select Scopes
Section titled “Select Scopes”In the “Scopes” section, check:
- ✅
bot
Select Bot Permissions
Section titled “Select Bot Permissions”In the “Bot Permissions” section, check:
- ✅ Send Messages - To post playlist links
- ✅ Read Messages/View Channels - To monitor setlist messages
- ✅ Add Reactions - To add reaction emojis for approval workflow
- ✅ Send Messages in Threads - If your server uses threads
- ✅ Read Message History - To process setlist messages
Copy the “Generated URL” at the bottom of the page.
Step 6: Add Bot to Your Server
Section titled “Step 6: Add Bot to Your Server”- Paste the Generated URL into your browser
- Select the server you want to add the bot to
- Click “Continue”
- Review the permissions and click “Authorize”
- Complete the CAPTCHA if prompted
Your bot should now appear in your server’s member list (offline until you run it).
Step 7: Get User IDs
Section titled “Step 7: Get User IDs”You need Discord User IDs for jam leaders and approvers.
Enable Developer Mode (Recommended)
Section titled “Enable Developer Mode (Recommended)”- Open Discord (desktop or web)
- Click the gear icon (User Settings) at the bottom left
- Go to App Settings → Advanced
- Toggle on “Developer Mode”
Get User IDs
Section titled “Get User IDs”- Right-click on any user’s username or avatar
- Click “Copy User ID”
- The ID will look like:
123456789012345678
Step 8: Add Credentials to .env
Section titled “Step 8: Add Credentials to .env”# Discord Bot TokenDISCORD_BOT_TOKEN=your_bot_token_here
# Optional - can be configured via /jambot-setup insteadDISCORD_JAM_LEADER_ID=123456789012345678DISCORD_ADMIN_ID=123456789012345678Testing Your Bot
Section titled “Testing Your Bot”Once configured, test that:
- ✅ Bot appears online in your server
- ✅ Bot responds to slash commands
- ✅ Bot can send DMs to admin user
- ✅ Bot can add reactions to messages