Discord Setup

Run your agent as a Discord bot in your server with full message support.

Creating a Discord Bot

  1. Go to the Discord Developer Portal
  2. Click New Application and give it a name
  3. On General Information, copy the Application ID
  4. Go to the Bot section and click Add Bot
  5. Under Privileged Gateway Intents, enable:
    • Message Content Intent – required for reading messages
  6. Copy the Bot Token

Inviting the Bot

  1. Go to OAuth2 > URL Generator
  2. Select the bot scope
  3. Select these permissions:
    • Send Messages
    • Read Message History
  4. Copy the generated URL and open it in your browser
  5. Select your server and authorize the bot

Connecting to Lenno

  1. Go to your agent’s Channels tab
  2. Click Add Channel and select Discord
  3. Paste the Bot Token and Application ID
  4. Click Save

Pairing The Owner

Discord bot credentials authenticate the integration, not the person sending a message. The channel stays unlinked and ordinary senders are ignored until the agent’s current effective owner completes pairing:

  1. Optionally save the expected stable Discord user ID in Access & Trust. It constrains every pairing attempt but grants no authority alone.
  2. Generate a code for this exact Discord channel.
  3. Send the ordinary message lenno pair <code> to the bot within 15 minutes: use a direct message when no expected identity is configured, or the matching account in a server channel when one is configured. This is a normal bot message, not a Discord slash command.

The code is single-use and cannot pair another Discord channel. A configured ID, username, or display name never grants owner authority by itself.

Tips

  • Give the bot access only where it should receive conversations; channel visibility is not owner authorization
  • Use Discord’s role permissions to control which channels the bot can see
  • For dedicated support, create a specific channel and restrict bot access to it