Discord
Lobu’s Discord adapter supports direct messages, server channels, and interactive workflows. Under the hood, Lobu uses the Chat SDK Discord adapter to handle DMs and server messaging.
- Create a Discord application at the Discord Developer Portal.
- Under Bot, create a bot and copy the bot token.
- Copy the Application ID and Public Key from the General Information page.
- Under OAuth2 → URL Generator, select the
botscope plus message-send, read-history, and slash-command permissions. Use the generated URL to invite the bot to your server. - Use Agents → Connections in the web app to add Discord, or declare a
discordconnection inlobu.config.ts.
Configuration
Section titled “Configuration”| Field | Required | Type | Description |
|---|---|---|---|
botToken | No | string | Discord bot token. |
applicationId | No | string | Discord application ID. |
publicKey | No | string | Application public key for webhook signature verification. |
mentionRoleIds | No | string[] | Role IDs that trigger mention handlers (in addition to direct mentions). |
userName | No | string | Override bot username. |
Features
Section titled “Features”- Direct messages and server channel mentions trigger the agent.
- Role-based triggers — configure specific roles that activate the agent beyond direct mentions.
- Streaming responses with throttled message edits.
- Markdown formatting — agent responses render as Discord-flavored markdown.
- Interactive elements — buttons and cards for user prompts, permission grants, and configuration.
- Access control — restrict which users or groups can interact with the agent.
Typical Use Cases
Section titled “Typical Use Cases”- Team assistant in a Discord server (engineering, support, knowledge base).
- Community bot that answers questions using your agent’s skills and tools.
- Developer tool that runs commands or queries APIs on behalf of server members.