diff --git a/docs/channels/discord.md b/docs/channels/discord.md index 37b710b5a7b..5ee53633fd7 100644 --- a/docs/channels/discord.md +++ b/docs/channels/discord.md @@ -5,9 +5,7 @@ read_when: title: "Discord" --- -# Discord (Bot API) - -Status: ready for DMs and guild channels via the official Discord gateway. +Ready for DMs and guild channels via the official Discord gateway. @@ -495,60 +493,6 @@ Use `bindings[].match.roles` to route Discord guild members to different agents } ``` -## Developer Portal setup - - - - - 1. Discord Developer Portal -> **Applications** -> **New Application** - 2. **Bot** -> **Add Bot** - 3. Copy bot token - - - - - In **Bot -> Privileged Gateway Intents**, enable: - - - Message Content Intent - - Server Members Intent (recommended) - - Presence intent is optional and only required if you want to receive presence updates. Setting bot presence (`setPresence`) does not require enabling presence updates for members. - - - - - OAuth URL generator: - - - scopes: `bot`, `applications.commands` - - Typical baseline permissions: - - **General Permissions** - - View Channels - **Text Permissions** - - Send Messages - - Read Message History - - Embed Links - - Attach Files - - Add Reactions (optional) - - This is the baseline set for normal text channels. If you plan to post in Discord threads, including forum or media channel workflows that create or continue a thread, also enable **Send Messages in Threads**. - Avoid `Administrator` unless explicitly needed. - - - - - Enable Discord Developer Mode, then copy: - - - server ID - - channel ID - - user ID - - Prefer numeric IDs in OpenClaw config for reliable audits and probes. - - - - ## Native commands and command auth - `commands.native` defaults to `"auto"` and is enabled for Discord. @@ -1188,13 +1132,11 @@ openclaw logs --follow -## Configuration reference pointers +## Configuration reference -Primary reference: +Primary reference: [Configuration reference - Discord](/gateway/configuration-reference#discord). -- [Configuration reference - Discord](/gateway/configuration-reference#discord) - -High-signal Discord fields: + - startup/auth: `enabled`, `token`, `accounts.*`, `allowBots` - policy: `groupPolicy`, `dm.*`, `guilds.*`, `guilds.*.channels.*` @@ -1204,13 +1146,14 @@ High-signal Discord fields: - reply/history: `replyToMode`, `historyLimit`, `dmHistoryLimit`, `dms.*.historyLimit` - delivery: `textChunkLimit`, `chunkMode`, `maxLinesPerMessage` - streaming: `streaming` (legacy alias: `streamMode`), `streaming.preview.toolProgress`, `draftChunk`, `blockStreaming`, `blockStreamingCoalesce` -- media/retry: `mediaMaxMb`, `retry` - - `mediaMaxMb` caps outbound Discord uploads (default: `100MB`) +- media/retry: `mediaMaxMb` (caps outbound Discord uploads, default `100MB`), `retry` - actions: `actions.*` - presence: `activity`, `status`, `activityType`, `activityUrl` - UI: `ui.components.accentColor` - features: `threadBindings`, top-level `bindings[]` (`type: "acp"`), `pluralkit`, `execApprovals`, `intents`, `agentComponents`, `heartbeat`, `responsePrefix` + + ## Safety and operations - Treat bot tokens as secrets (`DISCORD_BOT_TOKEN` preferred in supervised environments). @@ -1219,10 +1162,23 @@ High-signal Discord fields: ## Related -- [Pairing](/channels/pairing) -- [Groups](/channels/groups) -- [Channel routing](/channels/channel-routing) -- [Security](/gateway/security) -- [Multi-agent routing](/concepts/multi-agent) -- [Troubleshooting](/channels/troubleshooting) -- [Slash commands](/tools/slash-commands) + + + Pair a Discord user to the gateway. + + + Group chat and allowlist behavior. + + + Route inbound messages to agents. + + + Threat model and hardening. + + + Map guilds and channels to agents. + + + Native command behavior. + +