diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index 0b8799262..6691ade78 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "d4e88e7a2fe59ab0ba06393df5343d21c043aa1c", - "syncedAt": "2026-04-30T00:46:45.526Z" + "sha": "a548d8e1eabf2a4cb8f6efc0e988115acef446ee", + "syncedAt": "2026-04-30T00:48:07.478Z" } diff --git a/docs/.generated/config-baseline.sha256 b/docs/.generated/config-baseline.sha256 index c93d66d7b..4fe359e63 100644 --- a/docs/.generated/config-baseline.sha256 +++ b/docs/.generated/config-baseline.sha256 @@ -1,4 +1,4 @@ -b095536aeeb273b029a7a96cd8406cbcbc315dfd67dc45f469782ce1ccbc9e08 config-baseline.json +7bf720f6d9040c53323553b1bd351f688137c6b352c4cf2acfd7f7d252644b38 config-baseline.json ab9a004ec78ed51e646be29eb10aa6700de1d47fee77331a85ca5e2cd15b6e93 config-baseline.core.json -fab66aa304db5697e87259165ad261006719eb6e6cdbd25f957fcba2b7b324e9 config-baseline.channel.json +92712871defa92eeda8161b516db85574681f2b70678b940508a808b987aeae2 config-baseline.channel.json c4231c2194206547af8ad94342dc00aadb734f43cb49cc79d4c46bdbb80c3f95 config-baseline.plugin.json diff --git a/docs/channels/discord.md b/docs/channels/discord.md index 3c8357757..a3b3daa0e 100644 --- a/docs/channels/discord.md +++ b/docs/channels/discord.md @@ -115,6 +115,7 @@ openclaw gateway If OpenClaw is already running as a background service, restart it via the OpenClaw Mac app or by stopping and restarting the `openclaw gateway run` process. For managed service installs, run `openclaw gateway install` from a shell where `DISCORD_BOT_TOKEN` is present, or store the variable in `~/.openclaw/.env`, so the service can resolve the env SecretRef after restart. + If your host is blocked or rate-limited by Discord's startup application lookup, set the Discord application/client ID from the Developer Portal so startup can skip that REST call. Use `channels.discord.applicationId` for the default account, or `channels.discord.accounts..applicationId` when you run multiple Discord bots. @@ -152,6 +153,28 @@ DISCORD_BOT_TOKEN=... For scripted or remote setup, write the same JSON5 block with `openclaw config patch --file ./discord.patch.json5 --dry-run` and then rerun without `--dry-run`. Plaintext `token` values are supported. SecretRef values are also supported for `channels.discord.token` across env/file/exec providers. See [Secrets Management](/gateway/secrets). + For multiple Discord bots, keep each bot token and application ID under its account. A top-level `channels.discord.applicationId` is inherited by accounts, so only set it there when every account should use the same application ID. + +```json5 +{ + channels: { + discord: { + enabled: true, + accounts: { + personal: { + token: { source: "env", provider: "default", id: "DISCORD_PERSONAL_TOKEN" }, + applicationId: "111111111111111111", + }, + work: { + token: { source: "env", provider: "default", id: "DISCORD_WORK_TOKEN" }, + applicationId: "222222222222222222", + }, + }, + }, + }, +} +``` +