@openclaw/discord 2026.2.22 → 2026.2.23

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 +3 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/discord",
3
- "version": "2026.2.22",
3
+ "version": "2026.2.23",
4
4
  "description": "OpenClaw Discord channel plugin",
5
5
  "type": "module",
6
6
  "devDependencies": {
package/src/channel.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  applyAccountNameToChannelSection,
3
3
  buildChannelConfigSchema,
4
+ buildTokenChannelStatusSummary,
4
5
  collectDiscordAuditChannelIds,
5
6
  collectDiscordStatusIssues,
6
7
  DEFAULT_ACCOUNT_ID,
@@ -347,16 +348,8 @@ export const discordPlugin: ChannelPlugin<ResolvedDiscordAccount> = {
347
348
  lastError: null,
348
349
  },
349
350
  collectStatusIssues: collectDiscordStatusIssues,
350
- buildChannelSummary: ({ snapshot }) => ({
351
- configured: snapshot.configured ?? false,
352
- tokenSource: snapshot.tokenSource ?? "none",
353
- running: snapshot.running ?? false,
354
- lastStartAt: snapshot.lastStartAt ?? null,
355
- lastStopAt: snapshot.lastStopAt ?? null,
356
- lastError: snapshot.lastError ?? null,
357
- probe: snapshot.probe,
358
- lastProbeAt: snapshot.lastProbeAt ?? null,
359
- }),
351
+ buildChannelSummary: ({ snapshot }) =>
352
+ buildTokenChannelStatusSummary(snapshot, { includeMode: false }),
360
353
  probeAccount: async ({ account, timeoutMs }) =>
361
354
  getDiscordRuntime().channel.discord.probeDiscord(account.token, timeoutMs, {
362
355
  includeApplication: true,