Skip to main content
🦞
Channel Integration

Connect OpenClaw to Discord

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

🎮 Why Use Discord?
  • Server IntegrationUse in your existing Discord servers
  • Slash CommandsNative Discord command interface
  • Thread SupportKeep conversations organized
  • Rich EmbedsBeautiful formatted responses
  • DM SupportPrivate conversations with your bot
Setup Steps

1. Create a Discord Application

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

  • Visit discord.com/developers/applications
  • Click "New Application"
  • Name it (e.g., "OpenClaw")

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 OpenClaw

Add the Discord configuration to your config file:

{
  "channels": {
    "discord": {
      "enabled": true,
      "token": "YOUR_BOT_TOKEN",
      "allowFrom": ["YOUR_USER_ID"],
      "guilds": {
        "YOUR_GUILD_ID": { "requireMention": true }
      }
    }
  }
}

5. Restart and Test

Restart OpenClaw and test in Discord:

openclaw 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
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.

Cookie Preferences

We use essential cookies and analytics to operate and improve the site. Advertising cookies are loaded only after you consent. Privacy Policy