@openclaw/discord 2026.2.24 → 2026.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/channel.ts +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/discord",
3
- "version": "2026.2.24",
3
+ "version": "2026.3.1",
4
4
  "description": "OpenClaw Discord channel plugin",
5
5
  "type": "module",
6
6
  "openclaw": {
package/src/channel.ts CHANGED
@@ -343,6 +343,11 @@ export const discordPlugin: ChannelPlugin<ResolvedDiscordAccount> = {
343
343
  defaultRuntime: {
344
344
  accountId: DEFAULT_ACCOUNT_ID,
345
345
  running: false,
346
+ connected: false,
347
+ reconnectAttempts: 0,
348
+ lastConnectedAt: null,
349
+ lastDisconnect: null,
350
+ lastEventAt: null,
346
351
  lastStartAt: null,
347
352
  lastStopAt: null,
348
353
  lastError: null,
@@ -394,6 +399,11 @@ export const discordPlugin: ChannelPlugin<ResolvedDiscordAccount> = {
394
399
  lastStartAt: runtime?.lastStartAt ?? null,
395
400
  lastStopAt: runtime?.lastStopAt ?? null,
396
401
  lastError: runtime?.lastError ?? null,
402
+ connected: runtime?.connected ?? false,
403
+ reconnectAttempts: runtime?.reconnectAttempts,
404
+ lastConnectedAt: runtime?.lastConnectedAt ?? null,
405
+ lastDisconnect: runtime?.lastDisconnect ?? null,
406
+ lastEventAt: runtime?.lastEventAt ?? null,
397
407
  application: app ?? undefined,
398
408
  bot: bot ?? undefined,
399
409
  probe,
@@ -445,6 +455,7 @@ export const discordPlugin: ChannelPlugin<ResolvedDiscordAccount> = {
445
455
  abortSignal: ctx.abortSignal,
446
456
  mediaMaxMb: account.config.mediaMaxMb,
447
457
  historyLimit: account.config.historyLimit,
458
+ setStatus: (patch) => ctx.setStatus({ accountId: account.accountId, ...patch }),
448
459
  });
449
460
  },
450
461
  },