Discord Credential - Discord Bot
What is a Discord Credential
Section titled “What is a Discord Credential”A Discord credential allows your workflows to send messages, manage channels, and interact with Discord servers through a bot. You need to create an application in the Discord developer portal.
Configuration Fields
Section titled “Configuration Fields”| Field | Description | Example |
|---|---|---|
| Bot Token | Bot authentication token | MTI3... |
| Default Guild ID | Main server ID | 123456789012345678 |
How to Get the Credentials
Section titled “How to Get the Credentials”Step 1: Create the Application
Section titled “Step 1: Create the Application”- Go to discord.com/developers/applications
- Click New Application
- Give your application a name (e.g., “Floogos Bot”)
- Accept the terms of service
Step 2: Create the Bot
Section titled “Step 2: Create the Bot”- In your application’s sidebar, select Bot
- Click Add Bot (if not created automatically)
- Optionally, change the bot’s name and avatar
- In the Token section, click Reset Token
- Copy the token immediately (it won’t be shown again)
Step 3: Configure Bot Permissions
Section titled “Step 3: Configure Bot Permissions”- In the Bot section, configure Privileged Gateway Intents as needed:
- Message Content Intent: To read message content
- Server Members Intent: To access the member list
- In OAuth2 > URL Generator, select the
botscope - Check the required permissions (Send Messages, Read Messages, etc.)
- Copy the generated URL and open it in your browser to invite the bot to your server
Step 4: Get the Guild ID
Section titled “Step 4: Get the Guild ID”- Open Discord in your browser or desktop app
- Go to User Settings > Advanced and enable Developer Mode
- Right-click your server name in the sidebar
- Select Copy Server ID
Troubleshooting
Section titled “Troubleshooting”Bot Not Responding
Section titled “Bot Not Responding”- Verify the bot is invited to the correct server
- Confirm the bot has permissions in the channel where you’re trying to use it
- Check that the required Gateway Intents are enabled
Invalid Token Error
Section titled “Invalid Token Error”- Bot tokens are invalidated when you Reset Token
- Generate a new token and update it in Floogos
Insufficient Permissions
Section titled “Insufficient Permissions”- Check the bot’s permissions in the server settings
- Make sure the bot’s role has access to the required channels
- Re-invite the bot with correct permissions using a new OAuth2 URL
Wrong Guild ID
Section titled “Wrong Guild ID”- Make sure Developer Mode is enabled
- Verify the ID corresponds to the server where the bot is
Security
Section titled “Security”- Never share the bot token publicly or include it in code repositories
- If the token is compromised, Reset Token immediately
- Grant only the minimum permissions necessary to the bot
- Use different bots for development and production
- Monitor bot activity from the developer portal
- Consider restricting the bot to specific channels within the server