docs(discord): clarify application id account scope · openclaw/openclaw@9c22a01
steipete
·
2026-04-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -115,7 +115,7 @@ openclaw gateway
|
115 | 115 | |
116 | 116 | 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. |
117 | 117 | 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. |
118 | | -If your host is blocked or rate-limited by Discord's startup application lookup, set `channels.discord.applicationId` to the application's client ID from the Developer Portal so startup can skip that REST call. |
| 118 | +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.<accountId>.applicationId` when you run multiple Discord bots. |
119 | 119 | |
120 | 120 | </Step> |
121 | 121 | |
@@ -153,6 +153,28 @@ DISCORD_BOT_TOKEN=...
|
153 | 153 | |
154 | 154 | 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). |
155 | 155 | |
| 156 | + 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. |
| 157 | + |
| 158 | +```json5 |
| 159 | +{ |
| 160 | + channels: { |
| 161 | + discord: { |
| 162 | + enabled: true, |
| 163 | + accounts: { |
| 164 | + personal: { |
| 165 | + token: { source: "env", provider: "default", id: "DISCORD_PERSONAL_TOKEN" }, |
| 166 | + applicationId: "111111111111111111", |
| 167 | + }, |
| 168 | + work: { |
| 169 | + token: { source: "env", provider: "default", id: "DISCORD_WORK_TOKEN" }, |
| 170 | + applicationId: "222222222222222222", |
| 171 | + }, |
| 172 | + }, |
| 173 | + }, |
| 174 | + }, |
| 175 | +} |
| 176 | +``` |
| 177 | + |
156 | 178 | </Tab> |
157 | 179 | </Tabs> |
158 | 180 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。