Configure your Discord bot to send messages, manage channels, and interact with Discord servers from your Jinba Flow workflows.

Prerequisites

  • A Discord account
  • Administrator permissions on a Discord server (for bot setup)

Creating a Discord Bot

  1. Visit the Discord Developer Portal
  2. Click “New Application”
  3. Enter a name for your bot application
  4. Click “Create”

Configuring Your Discord Bot

Bot Configuration

  1. In your application, go to the “Bot” section in the sidebar
  2. Click “Add Bot” if you haven’t already
  3. Give your bot a username
  4. Upload an avatar image (optional)
  5. Note your Bot Token (you’ll need this later)

Bot Permissions

  1. In the Bot section, scroll down to “Privileged Gateway Intents”
  2. Enable the following intents:
    • Message Content Intent - Required to read message content
    • Server Members Intent - Required to access member information
    • Presence Intent - Optional, for presence updates

OAuth2 Configuration

  1. Go to the “OAuth2” section in the sidebar
  2. Click on “URL Generator”
  3. Select the following scopes:
    • bot - Bot permissions
    • applications.commands - Slash commands (if needed)
  4. Select the following bot permissions:
    • Send Messages - Send messages in channels
    • Send Messages in Threads - Send messages in threads
    • Read Message History - Read previous messages
    • Use Slash Commands - Use slash commands (if needed)
    • Manage Messages - Delete and manage messages
    • Embed Links - Send embedded messages
    • Attach Files - Send file attachments
    • Read Message History - Access message history
    • Add Reactions - Add reactions to messages
    • Use External Emojis - Use emojis from other servers

Setting Up in Jinba Flow

  1. Go to your workspace settings in Jinba Flow
  2. Navigate to the “Secret” section
  3. Find “Discord” in the list of available credentials
  4. Click “Configure” or “Add New”
  5. Enter your Discord bot credentials:
    • Bot Token: From your Discord application’s Bot section
    • Client ID: From your Discord application’s General Information
    • Client Secret: From your Discord application’s General Information
  6. Click “Save” to store your credentials

Inviting Your Bot to a Server

  1. Go to the “OAuth2” > “URL Generator” in your Discord application
  2. Select the scopes and permissions mentioned above
  3. Copy the generated URL
  4. Open the URL in a browser
  5. Select the server where you want to add the bot
  6. Review the permissions and click “Authorize”

Usage

Once configured, you can use Discord in your flows to:
  • Send messages to channels, direct messages, or threads
  • Read messages and user information
  • Manage channels and roles
  • Upload files and attachments
  • Respond to events and interactions
  • Use slash commands (if configured)