Files
openclaw/src/discord/monitor/status.ts
Peter Steinberger 0c0f556927 fix(discord): unify reconnect watchdog and land #31025/#30530
Landed follow-up intent from contributor PR #31025 (@theotarr) and PR #30530 (@liuxiaopai-ai).

Co-authored-by: theotarr <theotarr@users.noreply.github.com>
Co-authored-by: liuxiaopai-ai <liuxiaopai-ai@users.noreply.github.com>
2026-03-02 00:24:15 +00:00

19 lines
438 B
TypeScript

export type DiscordMonitorStatusPatch = {
connected?: boolean;
lastEventAt?: number | null;
lastConnectedAt?: number | null;
lastDisconnect?:
| string
| {
at: number;
status?: number;
error?: string;
loggedOut?: boolean;
}
| null;
lastInboundAt?: number | null;
lastError?: string | null;
};
export type DiscordMonitorStatusSink = (patch: DiscordMonitorStatusPatch) => void;