fix: preserve discord policy close narrowing · openclaw/openclaw@fd88f34
steipete
·
2026-05-31
·
via Recent Commits to openclaw:main
File tree
extensions/discord/src/monitor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -159,10 +159,10 @@ function shouldLogDiscordGatewayTransportClose(params: {
|
159 | 159 | lastError?: DiscordGatewayTransportErrorDetails; |
160 | 160 | }): boolean { |
161 | 161 | return ( |
| 162 | +params.code === DISCORD_GATEWAY_POLICY_VIOLATION_CLOSE_CODE || |
162 | 163 | (params.code !== 1000 && params.code !== 1001) || |
163 | 164 | params.reason.length > 0 || |
164 | | -params.lastError !== undefined || |
165 | | -params.code === DISCORD_GATEWAY_POLICY_VIOLATION_CLOSE_CODE |
| 165 | +params.lastError !== undefined |
166 | 166 | ); |
167 | 167 | } |
168 | 168 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。