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
- 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
- Use Slash Commands
- 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
- Click Save
Tips
- The bot will respond in any channel it has access to
- 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