mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-03 15:04:09 +00:00
fix: preserve discord policy close narrowing
This commit is contained in:
@@ -159,10 +159,10 @@ function shouldLogDiscordGatewayTransportClose(params: {
|
||||
lastError?: DiscordGatewayTransportErrorDetails;
|
||||
}): boolean {
|
||||
return (
|
||||
params.code === DISCORD_GATEWAY_POLICY_VIOLATION_CLOSE_CODE ||
|
||||
(params.code !== 1000 && params.code !== 1001) ||
|
||||
params.reason.length > 0 ||
|
||||
params.lastError !== undefined ||
|
||||
params.code === DISCORD_GATEWAY_POLICY_VIOLATION_CLOSE_CODE
|
||||
params.lastError !== undefined
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user