mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 15:04:58 +00:00
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>
This commit is contained in:
18
src/discord/monitor/status.ts
Normal file
18
src/discord/monitor/status.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user