






















@@ -591,30 +591,9 @@ Default slash command settings:
591591</Accordion>
592592593593<Accordion title="Live stream preview">
594-OpenClaw can stream draft replies by sending a temporary message and editing it as text arrives.
594+OpenClaw can stream draft replies by sending a temporary message and editing it as text arrives. `channels.discord.streaming` takes `off` (default) | `partial` | `block` | `progress`. `progress` maps to `partial` on Discord; `streamMode` is a legacy alias and is auto-migrated.
595595596-- `channels.discord.streaming` controls preview streaming (`off` | `partial` | `block` | `progress`, default: `off`).
597-- Default stays `off` because Discord preview edits can hit rate limits quickly, especially when multiple bots or gateways share the same account or guild traffic.
598-- `progress` is accepted for cross-channel consistency and maps to `partial` on Discord.
599-- `channels.discord.streamMode` is a legacy alias and is auto-migrated.
600-- `partial` edits a single preview message as tokens arrive.
601-- `block` emits draft-sized chunks (use `draftChunk` to tune size and breakpoints).
602-- Media, error, and explicit-reply finals cancel pending preview edits without flushing a temporary draft before normal delivery.
603-- `streaming.preview.toolProgress` controls whether tool/progress updates reuse the same draft preview message (default: `true`). Set `false` to keep separate tool/progress messages.
604-605-Example:
606-607-```json5
608-{
609- channels: {
610- discord: {
611- streaming: "partial",
612- },
613- },
614-}
615-```
616-617-`block` mode chunking defaults (clamped to `channels.discord.textChunkLimit`):
596+Default stays `off` because Discord preview edits hit rate limits quickly when multiple bots or gateways share an account.
618597619598```json5
620599{
@@ -631,10 +610,12 @@ Default slash command settings:
631610}
632611```
633612634-Preview streaming is text-only; media replies fall back to normal delivery.
613+- `partial` edits a single preview message as tokens arrive.
614+- `block` emits draft-sized chunks (use `draftChunk` to tune size and breakpoints, clamped to `textChunkLimit`).
615+- Media, error, and explicit-reply finals cancel pending preview edits.
616+- `streaming.preview.toolProgress` (default `true`) controls whether tool/progress updates reuse the preview message.
635617636-Note: preview streaming is separate from block streaming. When block streaming is explicitly
637-enabled for Discord, OpenClaw skips the preview stream to avoid double streaming.
618+Preview streaming is text-only; media replies fall back to normal delivery. When `block` streaming is explicitly enabled, OpenClaw skips the preview stream to avoid double-streaming.
638619639620</Accordion>
640621@@ -652,17 +633,12 @@ Default slash command settings:
652633653634Thread behavior:
654635655-- Discord threads are routed as channel sessions
656-- parent thread metadata can be used for parent-session linkage
657-- thread config inherits parent channel config unless a thread-specific entry exists
658-- parent transcript inheritance into newly created auto-threads is opt-in via `channels.discord.thread.inheritParent` (default `false`). When `false`, newly created Discord thread sessions start isolated from the parent channel transcript; when `true`, the parent channel history seeds the new thread session
659-- per-account overrides live under `channels.discord.accounts.<id>.thread.inheritParent`
660-- message-tool reactions can resolve `user:<id>` DM targets in addition to channel targets
661-- `channels.discord.guilds.<guild>.channels.<channel>.requireMention: false` is preserved during reply-stage activation fallback, so configured always-on channels stay always-on even when reply-stage fallback runs
636+- Discord threads route as channel sessions and inherit parent channel config unless overridden.
637+- `channels.discord.thread.inheritParent` (default `false`) opts new auto-threads into seeding from the parent transcript. Per-account overrides live under `channels.discord.accounts.<id>.thread.inheritParent`.
638+- Message-tool reactions can resolve `user:<id>` DM targets.
639+- `guilds.<guild>.channels.<channel>.requireMention: false` is preserved during reply-stage activation fallback.
662640663-Channel topics are injected as **untrusted** context (not as system prompt).
664-Reply and quoted-message context currently stays as received.
665-Discord allowlists primarily gate who can trigger the agent, not a full supplemental-context redaction boundary.
641+Channel topics are injected as **untrusted** context. Allowlists gate who can trigger the agent, not a full supplemental-context redaction boundary.
666642667643</Accordion>
668644@@ -770,13 +746,9 @@ Default slash command settings:
770746771747Notes:
772748773-- `/acp spawn codex --bind here` binds the current Discord channel or thread in place and keeps future messages routed to the same ACP session.
774-- That can still mean "start a fresh Codex ACP session", but it does not create a new Discord thread by itself. The existing channel stays the chat surface.
775-- Codex may still run in its own `cwd` or backend workspace on disk. That workspace is runtime state, not a Discord thread.
776-- Thread messages can inherit the parent channel ACP binding.
777-- In a bound channel or thread, `/new` and `/reset` reset the same ACP session in place.
778-- Temporary thread bindings still work and can override target resolution while active.
779-- `spawnAcpSessions` is only required when OpenClaw needs to create/bind a child thread via `--thread auto|here`. It is not required for `/acp spawn ... --bind here` in the current channel.
749+- `/acp spawn codex --bind here` binds the current channel or thread in place and keeps future messages on the same ACP session. Thread messages inherit the parent channel binding.
750+- In a bound channel or thread, `/new` and `/reset` reset the same ACP session in place. Temporary thread bindings can override target resolution while active.
751+- `spawnAcpSessions` is only required when OpenClaw needs to create/bind a child thread via `--thread auto|here`.
780752781753See [ACP Agents](/tools/acp-agents) for binding behavior details.
782754@@ -981,25 +953,9 @@ Default slash command settings:
981953should only include a manual `/approve` command when the tool result says
982954chat approvals are unavailable or manual approval is the only path.
983955984-Gateway auth for this handler uses the same shared credential resolution contract as other Gateway clients:
985-986-- env-first local auth (`OPENCLAW_GATEWAY_TOKEN` / `OPENCLAW_GATEWAY_PASSWORD` then `gateway.auth.*`)
987-- in local mode, `gateway.remote.*` can be used as fallback only when `gateway.auth.*` is unset; configured-but-unresolved local SecretRefs fail closed
988-- remote-mode support via `gateway.remote.*` when applicable
989-- URL overrides are override-safe: CLI overrides do not reuse implicit credentials, and env overrides use env credentials only
990-991-Approval resolution behavior:
992-993-- IDs prefixed with `plugin:` resolve through `plugin.approval.resolve`.
994-- Other IDs resolve through `exec.approval.resolve`.
995-- Discord does not do an extra exec-to-plugin fallback hop here; the id
996- prefix decides which gateway method it calls.
956+Gateway auth and approval resolution follow the shared Gateway client contract (`plugin:` IDs resolve through `plugin.approval.resolve`; other IDs through `exec.approval.resolve`). Approvals expire after 30 minutes by default.
997957998-Exec approvals expire after 30 minutes by default. If approvals fail with
999-unknown approval IDs, verify approver resolution, feature enablement, and
1000-that the delivered approval id kind matches the pending request.
1001-1002-Related docs: [Exec approvals](/tools/exec-approvals)
958+See [Exec approvals](/tools/exec-approvals).
10039591004960</Accordion>
1005961</AccordionGroup>
@@ -1052,17 +1008,19 @@ Example:
10521008}
10531009```
105410101055-## Voice channels
1011+## Voice
1012+1013+Discord has two distinct voice surfaces: realtime **voice channels** (continuous conversations) and **voice message attachments** (the waveform preview format). The gateway supports both.
105610141057-OpenClaw can join Discord voice channels for realtime, continuous conversations. This is separate from voice message attachments.
1015+### Voice channels
1058101610591017Requirements:
1060101810611019- Enable native commands (`commands.native` or `channels.discord.commands.native`).
10621020- Configure `channels.discord.voice`.
10631021- The bot needs Connect + Speak permissions in the target voice channel.
106410221065-Use the Discord-only native command `/vc join|leave|status` to control sessions. The command uses the account default agent and follows the same allowlist and group policy rules as other Discord commands.
1023+Use `/vc join|leave|status` to control sessions. The command uses the account default agent and follows the same allowlist and group policy rules as other Discord commands.
1066102410671025Auto-join example:
10681026@@ -1100,17 +1058,13 @@ Notes:
11001058- OpenClaw also watches receive decrypt failures and auto-recovers by leaving/rejoining the voice channel after repeated failures in a short window.
11011059- If receive logs repeatedly show `DecryptionFailed(UnencryptedWhenPassthroughDisabled)`, this may be the upstream `@discordjs/voice` receive bug tracked in [discord.js #11419](https://github.com/discordjs/discord.js/issues/11419).
110210601103-## Voice messages
1104-1105-Discord voice messages show a waveform preview and require OGG/Opus audio plus metadata. OpenClaw generates the waveform automatically, but it needs `ffmpeg` and `ffprobe` available on the gateway host to inspect and convert audio files.
1061+### Voice messages
110610621107-Requirements and constraints:
1063+Discord voice messages show a waveform preview and require OGG/Opus audio. OpenClaw generates the waveform automatically, but needs `ffmpeg` and `ffprobe` on the gateway host to inspect and convert.
1108106411091065- Provide a **local file path** (URLs are rejected).
1110-- Omit text content (Discord does not allow text + voice message in the same payload).
1111-- Any audio format is accepted; OpenClaw converts to OGG/Opus when needed.
1112-1113-Example:
1066+- Omit text content (Discord rejects text + voice message in the same payload).
1067+- Any audio format is accepted; OpenClaw converts to OGG/Opus as needed.
1114106811151069```bash
11161070message(action="send", channel="discord", target="channel:123", path="/path/to/audio.mp3", asVoice=true)
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。