Discord

Add your agent to Discord servers as a bot that can chat in any channel.

How it works

You create a Discord bot through the Discord Developer Portal, grab its token, and paste it into TextClaw. Your agent connects to Discord and responds to messages in channels where it has access.

Create a Discord bot

  1. Go to the Discord Developer Portal and click New Application.
  2. Give your application a name and click Create.
  3. Go to the Bot section in the left sidebar.
  4. Click Reset Token to generate a bot token. Copy it — you won't see it again.

Enable Message Content Intent

Discord requires you to explicitly opt in to reading message content.

  1. In the Bot section, scroll down to Privileged Gateway Intents.
  2. Toggle on Message Content Intent.
  3. Click Save Changes.

Invite the bot to your server

  1. Go to the OAuth2 section in the left sidebar.
  2. Under OAuth2 URL Generator, select the bot scope.
  3. Under Bot Permissions, select:
  • Send Messages
  • Read Message History
  • View Channels
  1. Copy the generated URL and open it in your browser.
  2. Select the server you want to add the bot to and click Authorize.

Connect to TextClaw

  1. Go to your TextClaw dashboard.
  2. Click Add Discord on the Discord card.
  3. Paste your bot token.
  4. Click Connect. Your agent will appear online in Discord within a few seconds.

Using your agent in Discord

  • The bot can see messages in channels where it has permissions.
  • Mention the bot with @name to get its attention in busy channels.
  • In DMs, the bot responds to every message.