Skip to content
API Blog

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.

C
Coding
online
List open PRs in lobu-ai/lobu12:01
Can't reach github.com — not in the agent's allowed domains. Grant access?12:01
Allow for 1 hour12:01
Added github.com to allowed domains. 3 open PRs in lobu-ai/lobu: • #214 Fix worker memory leak • #219 Telegram adapter retries • #223 Add Bedrock provider12:01
O
Ops Assistant
online
Summarize my active Linear sprint12:01
I need the `linear` skill to query Linear. It bundles the Linear MCP and handles OAuth via Lobu.12:01
Go ahead12:01
Installed and connected. Sprint "Week 15" (68% done): • 11 merged, 3 in review, 2 todo • Blocked: AUTH-234 (design) • At risk: API-89 (due tomorrow)12:01
A
Assistant
online
Switch to Claude Sonnet12:01
You can change the model from your settings — opens a scoped page with your current agent config.12:01
Done — set to claude-sonnet-4-612:01
Now running on claude-sonnet-4-6 via OpenRouter. Next messages will use the new model.12:01
  1. Create a Discord application at the Discord Developer Portal.
  2. Under Bot, create a bot and copy the bot token.
  3. Copy the Application ID and Public Key from the General Information page.
  4. Under OAuth2 → URL Generator, select the bot scope with Send Messages, Read Message History, and Use Slash Commands permissions. Use the generated URL to invite the bot to your server.
  5. Run lobu connections add discord to add the connection (prompts for the bot token), or run lobu init to scaffold a new project and pick Discord in the wizard.
FieldRequiredTypeDescription
botTokenNostringDiscord bot token.
applicationIdNostringDiscord application ID.
publicKeyNostringApplication public key for webhook signature verification.
mentionRoleIdsNostring[]Role IDs that trigger mention handlers (in addition to direct mentions).
userNameNostringOverride bot username.

Connection Settings

These settings apply to all platform connections and are passed in the settings object.

FieldRequiredTypeDescription
allowFromNostring[]User IDs allowed to interact with this connection. Omit to allow all; empty array blocks all.
allowGroupsNobooleanWhether group messages are allowed (default true).
userConfigScopesNostring[]Scopes that end users are allowed to customize. Empty = no restrictions.
  • 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 (updates every 2s).
  • 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.
  • 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.