Prerequisites
- A Discord account
- Administrator permissions on a Discord server (for bot setup)
Creating a Discord Bot
- Visit the Discord Developer Portal
- Click “New Application”
- Enter a name for your bot application
- Click “Create”
Configuring Your Discord Bot
Bot Configuration
- In your application, go to the “Bot” section in the sidebar
- Click “Add Bot” if you haven’t already
- Give your bot a username
- Upload an avatar image (optional)
- Note your Bot Token (you’ll need this later)
Bot Permissions
- In the Bot section, scroll down to “Privileged Gateway Intents”
- 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
- Go to the “OAuth2” section in the sidebar
- Click on “URL Generator”
-
Select the following scopes:
bot
- Bot permissionsapplications.commands
- Slash commands (if needed)
-
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
- Go to your workspace settings in Jinba Flow
- Navigate to the “Secret” section
- Find “Discord” in the list of available credentials
- Click “Configure” or “Add New”
- 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
- Click “Save” to store your credentials
Inviting Your Bot to a Server
- Go to the “OAuth2” > “URL Generator” in your Discord application
- Select the scopes and permissions mentioned above
- Copy the generated URL
- Open the URL in a browser
- Select the server where you want to add the bot
- 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)