🦞
Channel Integration

Connect Moltbot to Discord

Add Moltbot (formerly Clawdbot) to your Discord server. Get AI assistance in channels, threads, or DMs.

🎮 Why Use Discord?
  • Server Integration — Use in your existing Discord servers
  • Slash Commands — Native Discord command interface
  • Thread Support — Keep conversations organized
  • Rich Embeds — Beautiful formatted responses
  • DM Support — Private conversations with your bot

Setup Steps

1

Create a Discord Application

Go to the Discord Developer Portal and create a new application:

2

Create a Bot User

In your application settings:

  • • Go to the "Bot" section in the sidebar
  • • Click "Add Bot"
  • • Copy the Bot Token (keep it secret!)
  • • Enable "Message Content Intent" under Privileged Gateway Intents
3

Generate Invite Link

Create an OAuth2 URL to add the bot to your server:

  • • Go to "OAuth2" → "URL Generator"
  • • Select scopes: bot, applications.commands
  • • Select permissions: Send Messages, Read Message History, Use Slash Commands
  • • Copy the generated URL and open it to add bot to your server
4

Configure Moltbot

Add the Discord configuration to your config file:

{
  "channels": {
    "discord": {
      "enabled": true,
      "botToken": "YOUR_BOT_TOKEN",
      "allowFrom": ["YOUR_DISCORD_USER_ID"],
      "guildIds": ["YOUR_SERVER_ID"]
    }
  }
}
5

Restart and Test

Restart Moltbot and test in Discord:

moltbot restart

Then mention your bot or DM it in Discord to test the connection.

How to Get Discord IDs

Enable Developer Mode:

Settings → App Settings → Advanced → Enable Developer Mode

Get User ID:

Right-click your username → Copy User ID

Get Server (Guild) ID:

Right-click server name → Copy Server ID

Advanced Configuration
{
  "channels": {
    "discord": {
      "enabled": true,
      "botToken": "YOUR_BOT_TOKEN",
      "allowFrom": ["USER_ID_1", "USER_ID_2"],
      "guildIds": ["SERVER_ID"],
      "allowChannels": ["CHANNEL_ID_1"],
      "respondToMentions": true,
      "respondToDMs": true,
      "useEmbeds": true,
      "maxMessageLength": 2000
    }
  }
}
  • allowChannels — Restrict bot to specific channels
  • respondToMentions — Only respond when @mentioned
  • respondToDMs — Allow direct messages
  • useEmbeds — Use rich embed formatting
⚠️ Troubleshooting

Bot is online but not responding?

Make sure "Message Content Intent" is enabled in Discord Developer Portal.

Slash commands not showing?

Commands may take up to an hour to sync. Try kicking and re-adding the bot.

Permission errors?

Re-invite the bot with the correct permissions using the OAuth2 URL generator.

Discord Connected!

Now configure more channels or enhance your bot with custom skills.