Discord Setup
Run your agent as a Discord bot in your server with full message support.
Creating a Discord Bot
- Go to the Discord Developer Portal
- Click New Application and give it a name
- On General Information, copy the Application ID
- Go to the Bot section and click Add Bot
-
Under Privileged Gateway Intents, enable:
- Message Content Intent – required for reading messages
- Copy the Bot Token
Inviting the Bot
- Go to OAuth2 > URL Generator
-
Select the
botscope -
Select these permissions:
- Send Messages
- Read Message History
- Copy the generated URL and open it in your browser
- Select your server and authorize the bot
Connecting to Lenno
- Go to your agent’s Channels tab
- Click Add Channel and select Discord
- Paste the Bot Token and Application ID
- 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:
- Optionally save the expected stable Discord user ID in Access & Trust. It constrains every pairing attempt but grants no authority alone.
- Generate a code for this exact Discord channel.
-
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