@openclaw/discord 2026.10.10-beta.3 → 2026.10.10-beta.5

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 (52) hide show
  1. package/dist/.setup/{approval-handler.runtime-BvF8oUpa.mjs → approval-handler.runtime-Db06VTbO.mjs} +4 -4
  2. package/dist/.setup/{audit-UwzCdDJk.mjs → audit-BXOSwPCj.mjs} +3 -3
  3. package/dist/.setup/{channel-BlvyeRAu.mjs → channel-D2pO9g6n.mjs} +11 -11
  4. package/dist/.setup/{channel.setup-By7wNopw.mjs → channel.setup-5fHTqcKz.mjs} +1 -1
  5. package/dist/.setup/{command-owners-D78sAoOz.mjs → command-owners-C7rUdqUX.mjs} +1 -1
  6. package/dist/.setup/{conversation-binding-route-fdYsXexV.mjs → conversation-binding-route-Dcqrf96n.mjs} +1 -1
  7. package/dist/.setup/{doctor-94GSI6lY.mjs → doctor-t9tc4fim.mjs} +2 -2
  8. package/dist/.setup/{handle-action-0-FZD3Am.mjs → handle-action-CRH5-aLm.mjs} +5 -5
  9. package/dist/.setup/{handle-action.guild-admin-DfAWANBE.mjs → handle-action.guild-admin-BCWdfNPn.mjs} +2 -2
  10. package/dist/.setup/{message-handler-CtR2w7W_.mjs → message-handler-BvzZOXLT.mjs} +4 -4
  11. package/dist/.setup/{message-handler.preflight-BqUw7LWb.mjs → message-handler.preflight-DD0kun2e.mjs} +6 -6
  12. package/dist/.setup/{message-handler.preflight-pluralkit-BU9I_X-b.mjs → message-handler.preflight-pluralkit-DQygfoVJ.mjs} +2 -2
  13. package/dist/.setup/{message-handler.process-BZeWmSNC.mjs → message-handler.process-1dRMGRR1.mjs} +11 -11
  14. package/dist/.setup/{outbound-adapter-DBwgKemw.mjs → outbound-adapter-gpo_85fY.mjs} +5 -5
  15. package/dist/.setup/{outbound-session-route-CsHHPxsQ.mjs → outbound-session-route-D-qWvLfS.mjs} +4 -4
  16. package/dist/.setup/{provider-DUTsZJHz.mjs → provider-D2gXZbGd.mjs} +58 -30
  17. package/dist/.setup/{provider-session.runtime-Ucr3XodI.mjs → provider-session.runtime-3bl84wqI.mjs} +3 -3
  18. package/dist/.setup/provider.runtime-BI_CV9tI.mjs +1 -0
  19. package/dist/.setup/{realtime-session.runtime-bNnPOKP_.mjs → realtime-session.runtime-Cw2Nz11j.mjs} +2 -2
  20. package/dist/.setup/{runtime-Cg5pIBm_.mjs → runtime-BRsj76Px.mjs} +1 -1
  21. package/dist/.setup/{runtime-DE6W14G3.mjs → runtime-By-vo8b-.mjs} +6 -6
  22. package/dist/.setup/{send-yR1hfybW.mjs → send-Ca810XtV.mjs} +3 -3
  23. package/dist/.setup/{send.components--dxMjc2O.mjs → send.components-DxpLdHrr.mjs} +3 -3
  24. package/dist/.setup/{send.outbound-B5vQwgUK.mjs → send.outbound-ByYCrfta.mjs} +2 -2
  25. package/dist/.setup/{send.receipt-eE3zLTDH.mjs → send.receipt-DkwJ1h9E.mjs} +8 -3
  26. package/dist/.setup/{send.shared-iGf1rqAm.mjs → send.shared-C2J1g_uJ.mjs} +2 -2
  27. package/dist/.setup/setup-plugin-api-D5VV8xTN.mjs +2 -0
  28. package/dist/.setup/{shared-DgzLizSt.mjs → shared-DbNfsfcr.mjs} +1 -1
  29. package/dist/.setup/{subagent-hooks-tBtaqWkD.mjs → subagent-hooks-BhV5ZVej.mjs} +1 -1
  30. package/dist/.setup/{target-resolver-BFOKmBni.mjs → target-resolver-BxRZHPL3.mjs} +1 -1
  31. package/dist/.setup/{targets-UbCpek5o.mjs → targets-C0qD28Sz.mjs} +1 -1
  32. package/dist/.setup/{thread-bindings-Dsc3zsrI.mjs → thread-bindings-c0WwzyHH.mjs} +2 -2
  33. package/dist/.setup/{thread-bindings.manager-BMpmKLQh.mjs → thread-bindings.manager-B7HFHXrI.mjs} +4 -4
  34. package/dist/.setup/{threading-Cg_QRc8s.mjs → threading-DJjzMR2f.mjs} +1 -1
  35. package/dist/.setup/{transcripts-source-fRvFsZng.mjs → transcripts-source-MRAZocrc.mjs} +1 -1
  36. package/dist/.setup/{voice-runtime-DHDNu0fz.mjs → voice-runtime-_LfZ3Za7.mjs} +5 -5
  37. package/dist/.source-module-urls/d6c089460280c5a04184542d6712e04545caeb1ebb290d3504377b4cc5e22fea.json +1 -0
  38. package/dist/action-runtime-api.js +1 -1
  39. package/dist/activities-api.js +2 -2
  40. package/dist/api.js +9 -9
  41. package/dist/assets/embedded-app-sdk.mjs +1 -1
  42. package/dist/channel-plugin-api.js +1 -1
  43. package/dist/runtime-api.js +13 -13
  44. package/dist/setup-entry.js +1 -1
  45. package/dist/setup-plugin-api.js +1 -1
  46. package/dist/subagent-hooks-api.js +1 -1
  47. package/dist/transcripts-source-api.js +1 -1
  48. package/node_modules/@discord/embedded-app-sdk/output/lib/zod/lib/index.cjs +3 -2
  49. package/node_modules/@discord/embedded-app-sdk/output/lib/zod/lib/index.mjs +3 -2
  50. package/package.json +4 -4
  51. package/dist/.setup/provider.runtime-J8NuMCNs.mjs +0 -1
  52. package/dist/.setup/setup-plugin-api-DVpA_yqS.mjs +0 -2
@@ -1,9 +1,9 @@
1
- import { D as createDiscordMessageNonce, N as createDiscordClient } from "./send.shared-iGf1rqAm.mjs";
1
+ import { D as createDiscordMessageNonce, N as createDiscordClient } from "./send.shared-C2J1g_uJ.mjs";
2
2
  import { D as Row, ct as createChannelMessage, dt as editChannelMessage, j as TextDisplay, k as Separator, q as serializePayload, rt as createUserDmChannel, ut as deleteChannelMessage, x as Container, xt as stripUndefinedFields, y as Button } from "./discord-Cl2OPTZ6.mjs";
3
- import { y as findGraphemeChunkEnd } from "./send.receipt-eE3zLTDH.mjs";
3
+ import { y as findGraphemeChunkEnd } from "./send.receipt-DkwJ1h9E.mjs";
4
4
  import { s as buildExecApprovalCustomId } from "./components-C_cuoW1q.mjs";
5
- import { A as isDiscordExecApprovalClientEnabled, c as formatDiscordApprovalDisplayValue, s as DISCORD_APPROVAL_ALLOWED_MENTIONS } from "./outbound-session-route-CsHHPxsQ.mjs";
6
- import { a as shouldHandleDiscordApprovalRequest } from "./channel-BlvyeRAu.mjs";
5
+ import { A as isDiscordExecApprovalClientEnabled, c as formatDiscordApprovalDisplayValue, s as DISCORD_APPROVAL_ALLOWED_MENTIONS } from "./outbound-session-route-D-qWvLfS.mjs";
6
+ import { a as shouldHandleDiscordApprovalRequest } from "./channel-D2pO9g6n.mjs";
7
7
  import { t as discordApprovalMessageUpdates } from "./approval-message-updates-wbUqLtLI.mjs";
8
8
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
9
9
  import { ButtonStyle } from "discord-api-types/v10";
@@ -1,8 +1,8 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
2
2
  import { t as inspectDiscordAccount } from "./account-inspect-8cCu6uPG.mjs";
3
- import { b as fetchChannelPermissionsDiscord } from "./send.shared-iGf1rqAm.mjs";
4
- import "./send-yR1hfybW.mjs";
5
- import { E as collectDiscordAuditChannelIdsForAccount, T as auditDiscordChannelPermissionsWithFetcher } from "./outbound-session-route-CsHHPxsQ.mjs";
3
+ import { b as fetchChannelPermissionsDiscord } from "./send.shared-C2J1g_uJ.mjs";
4
+ import "./send-Ca810XtV.mjs";
5
+ import { E as collectDiscordAuditChannelIdsForAccount, T as auditDiscordChannelPermissionsWithFetcher } from "./outbound-session-route-D-qWvLfS.mjs";
6
6
  //#region extensions/discord/src/audit.ts
7
7
  var audit_exports = /* @__PURE__ */ __exportAll({
8
8
  auditDiscordChannelPermissions: () => auditDiscordChannelPermissions,
@@ -1,14 +1,14 @@
1
1
  import { a as listDiscordStartupAccountIds, c as resolveDefaultDiscordAccountId, d as resolveDiscordAccountConfig, i as listDiscordAccountIds, l as resolveDiscordAccount, u as resolveDiscordAccountAllowFrom } from "./accounts-ljrzXBJi.mjs";
2
2
  import { G as withDiscordRequestAuthority } from "./discord-Cl2OPTZ6.mjs";
3
- import { d as normalizeDiscordMessagingTarget, l as looksLikeDiscordTargetId, u as matchesDiscordToolContextTarget } from "./send.receipt-eE3zLTDH.mjs";
3
+ import { d as normalizeDiscordMessagingTarget, l as looksLikeDiscordTargetId, u as matchesDiscordToolContextTarget } from "./send.receipt-DkwJ1h9E.mjs";
4
4
  import { t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
5
5
  import { l as withAbortTimeout } from "./timeouts-CuNARfyw.mjs";
6
6
  import { t as getDiscordRuntime } from "./runtime-DgnVQ7zW.mjs";
7
- import { A as isDiscordExecApprovalClientEnabled, D as resolveRequiredDiscordChannelPermissions, O as getDiscordExecApprovalApprovers, b as resolveDiscordRuntimeBindingConversationId, h as resolveDiscordConversationRoute, j as shouldSuppressLocalDiscordExecApprovalPrompt, k as isDiscordExecApprovalApprover, l as findDiscordChannelPolicyKey, t as resolveDiscordOutboundSessionRoute, u as getDiscordChannelPolicyBinding, x as discordMessageActions } from "./outbound-session-route-CsHHPxsQ.mjs";
8
- import { a as normalizeDiscordAcpConversationId, c as resolveDiscordInboundConversation, i as matchDiscordAcpConversation, n as discordOutbound, o as resolveDiscordAttachedOutboundTarget, r as buildDiscordCrossContextPresentation, s as resolveDiscordCommandConversation } from "./outbound-adapter-DBwgKemw.mjs";
7
+ import { A as isDiscordExecApprovalClientEnabled, D as resolveRequiredDiscordChannelPermissions, O as getDiscordExecApprovalApprovers, b as resolveDiscordRuntimeBindingConversationId, h as resolveDiscordConversationRoute, j as shouldSuppressLocalDiscordExecApprovalPrompt, k as isDiscordExecApprovalApprover, l as findDiscordChannelPolicyKey, t as resolveDiscordOutboundSessionRoute, u as getDiscordChannelPolicyBinding, x as discordMessageActions } from "./outbound-session-route-D-qWvLfS.mjs";
8
+ import { a as normalizeDiscordAcpConversationId, c as resolveDiscordInboundConversation, i as matchDiscordAcpConversation, n as discordOutbound, o as resolveDiscordAttachedOutboundTarget, r as buildDiscordCrossContextPresentation, s as resolveDiscordCommandConversation } from "./outbound-adapter-gpo_85fY.mjs";
9
9
  import { r as openDiscordCommandDeployHashStore } from "./command-deploy-store-DFkBTViB.mjs";
10
- import { t as resolveDiscordConversationBindingRoute } from "./conversation-binding-route-fdYsXexV.mjs";
11
- import { a as discordSecurityAdapter, i as discordSetupContract, n as discordConfigAdapter, t as createDiscordPluginBase } from "./shared-DgzLizSt.mjs";
10
+ import { t as resolveDiscordConversationBindingRoute } from "./conversation-binding-route-Dcqrf96n.mjs";
11
+ import { a as discordSecurityAdapter, i as discordSetupContract, n as discordConfigAdapter, t as createDiscordPluginBase } from "./shared-DbNfsfcr.mjs";
12
12
  import { t as normalizeExplicitDiscordSessionKey } from "./session-key-normalization-CCHGNSQw.mjs";
13
13
  import { i as setThreadBindingMaxAgeBySessionKeyAsync, n as setThreadBindingIdleTimeoutBySessionKeyAsync, r as setThreadBindingMaxAgeBySessionKey, t as setThreadBindingIdleTimeoutBySessionKey } from "./thread-bindings.session-updates-BMdJeJMc.mjs";
14
14
  import { t as defaultTopLevelPlacement } from "./thread-binding-api-BDZJD4na.mjs";
@@ -164,7 +164,7 @@ function createDiscordApprovalCapability() {
164
164
  accountId
165
165
  }),
166
166
  shouldHandle: shouldHandleDiscordApprovalRequest,
167
- load: async () => (await import("./approval-handler.runtime-BvF8oUpa.mjs")).discordApprovalNativeRuntime
167
+ load: async () => (await import("./approval-handler.runtime-Db06VTbO.mjs")).discordApprovalNativeRuntime
168
168
  })
169
169
  });
170
170
  }
@@ -178,9 +178,9 @@ function getDiscordApprovalCapability() {
178
178
  const loadDiscordDirectoryConfigModule = createLazyRuntimeModule(() => import("./directory-config-3iVub-3m.mjs").then((n) => n.t));
179
179
  const loadDiscordResolveChannelsModule = createLazyRuntimeModule(() => import("./resolve-channels-UdT38DzU.mjs").then((n) => n.n));
180
180
  const loadDiscordResolveUsersModule = createLazyRuntimeModule(() => import("./resolve-users-DnCsrXZ_.mjs").then((n) => n.n));
181
- const loadDiscordThreadBindingsManagerModule = createLazyRuntimeModule(() => import("./thread-bindings.manager-BMpmKLQh.mjs").then((n) => n.r));
182
- const loadDiscordTargetResolverModule = createLazyRuntimeModule(() => import("./target-resolver-BFOKmBni.mjs").then((n) => n.r));
183
- const loadDiscordProviderRuntime = createLazyRuntimeModule(() => import("./provider.runtime-J8NuMCNs.mjs"));
181
+ const loadDiscordThreadBindingsManagerModule = createLazyRuntimeModule(() => import("./thread-bindings.manager-B7HFHXrI.mjs").then((n) => n.r));
182
+ const loadDiscordTargetResolverModule = createLazyRuntimeModule(() => import("./target-resolver-BxRZHPL3.mjs").then((n) => n.r));
183
+ const loadDiscordProviderRuntime = createLazyRuntimeModule(() => import("./provider.runtime-BI_CV9tI.mjs"));
184
184
  const loadDiscordProbeRuntime = createLazyRuntimeModule(() => import("./probe-D3P1x4aN.mjs").then((n) => n.o));
185
185
  async function probeDiscordStatusAccount(params) {
186
186
  const startedAtMs = Date.now();
@@ -188,8 +188,8 @@ async function probeDiscordStatusAccount(params) {
188
188
  const remainingMs = Math.max(1, params.timeoutMs - Math.max(0, Date.now() - startedAtMs));
189
189
  return await runtime.probeDiscord(params.token, remainingMs, { includeApplication: true });
190
190
  }
191
- const loadDiscordAuditModule = createLazyRuntimeModule(() => import("./audit-UwzCdDJk.mjs").then((n) => n.n));
192
- const loadDiscordSendModule = createLazyRuntimeModule(() => import("./send-yR1hfybW.mjs").then((n) => n.t));
191
+ const loadDiscordAuditModule = createLazyRuntimeModule(() => import("./audit-BXOSwPCj.mjs").then((n) => n.n));
192
+ const loadDiscordSendModule = createLazyRuntimeModule(() => import("./send-Ca810XtV.mjs").then((n) => n.t));
193
193
  const loadDiscordDirectoryLiveModule = createLazyRuntimeModule(() => import("./directory-live-DLygQVtW.mjs").then((n) => n.t));
194
194
  //#endregion
195
195
  //#region extensions/discord/src/conversation-route-owner.ts
@@ -1,5 +1,5 @@
1
1
  import { c as resolveDefaultDiscordAccountId, g as resolveDiscordToken, n as inspectDiscordAccountConfig, s as mergeDiscordAccountConfig, u as resolveDiscordAccountAllowFrom } from "./accounts-ljrzXBJi.mjs";
2
- import { i as discordSetupContract, t as createDiscordPluginBase } from "./shared-DgzLizSt.mjs";
2
+ import { i as discordSetupContract, t as createDiscordPluginBase } from "./shared-DbNfsfcr.mjs";
3
3
  import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-UdT38DzU.mjs";
4
4
  import { t as resolveDiscordUserAllowlist } from "./resolve-users-DnCsrXZ_.mjs";
5
5
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
@@ -1,7 +1,7 @@
1
1
  //#region extensions/discord/src/command-owners.ts
2
2
  function resolveDiscordCommandOwnerEntries(cfg) {
3
3
  const entries = (cfg.commands?.ownerAllowFrom ?? []).map((entry) => String(entry).trim()).filter((entry) => entry && (/^(discord|user|pk):/i.test(entry) || !entry.includes(":")));
4
- return entries.length > 0 ? entries.filter((entry) => !/^discord:user:/i.test(entry)) : void 0;
4
+ return entries.length > 0 ? entries : void 0;
5
5
  }
6
6
  function resolveDiscordCommandOwnerAllowFrom(cfg) {
7
7
  return resolveDiscordCommandOwnerEntries(cfg)?.map((entry) => entry.replace(/^discord:/i, "").trim()).filter(Boolean);
@@ -1,4 +1,4 @@
1
- import { _ as shouldIgnoreStaleDiscordRouteBinding } from "./outbound-session-route-CsHHPxsQ.mjs";
1
+ import { _ as shouldIgnoreStaleDiscordRouteBinding } from "./outbound-session-route-D-qWvLfS.mjs";
2
2
  import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
3
3
  import { inspectRuntimeConversationBindingRoute, resolveConfiguredBindingRoute, resolveRuntimeConversationBindingRouteAsync } from "openclaw/plugin-sdk/conversation-binding-runtime";
4
4
  //#region extensions/discord/src/monitor/conversation-binding-route.ts
@@ -1,10 +1,10 @@
1
1
  import { c as resolveDefaultDiscordAccountId } from "./accounts-ljrzXBJi.mjs";
2
2
  import { t as inspectDiscordAccount } from "./account-inspect-8cCu6uPG.mjs";
3
- import { r as DISCORD_LEGACY_CONFIG_RULES } from "./shared-DgzLizSt.mjs";
3
+ import { r as DISCORD_LEGACY_CONFIG_RULES } from "./shared-DbNfsfcr.mjs";
4
4
  import { t as runtime_doctor_migrations_exports } from "./runtime-doctor-migrations-BPV-R4G9.mjs";
5
5
  import { n as normalizeCompatibilityConfig } from "./doctor-contract-Bwv8EuQ_.mjs";
6
6
  import { t as isDiscordMutableAllowEntry } from "./security-doctor-nGgPm65L.mjs";
7
- import { n as discordVoiceTranscriptsSourceProvider } from "./transcripts-source-fRvFsZng.mjs";
7
+ import { n as discordVoiceTranscriptsSourceProvider } from "./transcripts-source-MRAZocrc.mjs";
8
8
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
9
9
  import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
10
10
  //#region extensions/discord/src/doctor.ts
@@ -1,12 +1,12 @@
1
1
  import { G as withDiscordRequestAuthority } from "./discord-Cl2OPTZ6.mjs";
2
- import { u as matchesDiscordToolContextTarget } from "./send.receipt-eE3zLTDH.mjs";
2
+ import { u as matchesDiscordToolContextTarget } from "./send.receipt-DkwJ1h9E.mjs";
3
3
  import { n as resolveDiscordChannelId, t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
4
- import "./targets-UbCpek5o.mjs";
5
- import { a as readDiscordAutoArchiveDurationParam, t as handleDiscordAction } from "./runtime-DE6W14G3.mjs";
4
+ import "./targets-C0qD28Sz.mjs";
5
+ import { a as readDiscordAutoArchiveDurationParam, t as handleDiscordAction } from "./runtime-By-vo8b-.mjs";
6
6
  import { i as buildDiscordPresentationComponents, m as coerceDiscordComponentParam, r as buildDiscordInteractiveComponents } from "./components-C_cuoW1q.mjs";
7
7
  import "../action-runtime-api.js";
8
- import { C as discordInboundEventDelivery, i as isDiscordComponentSpecWithinMessageLimit, n as DISCORD_PRESENTATION_CAPABILITIES } from "./outbound-session-route-CsHHPxsQ.mjs";
9
- import { t as tryHandleDiscordMessageActionGuildAdmin } from "./handle-action.guild-admin-DfAWANBE.mjs";
8
+ import { C as discordInboundEventDelivery, i as isDiscordComponentSpecWithinMessageLimit, n as DISCORD_PRESENTATION_CAPABILITIES } from "./outbound-session-route-D-qWvLfS.mjs";
9
+ import { t as tryHandleDiscordMessageActionGuildAdmin } from "./handle-action.guild-admin-BCWdfNPn.mjs";
10
10
  import { n as notifyDiscordActiveTurnThreadCreated, r as notifyDiscordActiveTurnThreadReplyDelivered } from "./active-turn-thread-route-C4tp9noA.mjs";
11
11
  import { asOptionalRecord, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
12
12
  import { resolveReactionMessageId } from "openclaw/plugin-sdk/channel-actions";
@@ -1,6 +1,6 @@
1
- import { c as readDiscordChannelMoveParams, n as isDiscordModerationAction, o as readDiscordChannelCreateParams, r as readDiscordModerationCommand, s as readDiscordChannelEditParams, t as handleDiscordAction } from "./runtime-DE6W14G3.mjs";
1
+ import { c as readDiscordChannelMoveParams, n as isDiscordModerationAction, o as readDiscordChannelCreateParams, r as readDiscordModerationCommand, s as readDiscordChannelEditParams, t as handleDiscordAction } from "./runtime-By-vo8b-.mjs";
2
2
  import "../action-runtime-api.js";
3
- import { S as isTrustedRequesterGuildAdminAction } from "./outbound-session-route-CsHHPxsQ.mjs";
3
+ import { S as isTrustedRequesterGuildAdminAction } from "./outbound-session-route-D-qWvLfS.mjs";
4
4
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { readBooleanParam } from "openclaw/plugin-sdk/boolean-param";
6
6
  import { readNonNegativeIntegerParam, readPositiveIntegerParam, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/param-readers";
@@ -1,7 +1,7 @@
1
1
  import { D as getDiscordEndpointRuntime, k as resolveDiscordEndpointMediaGuard } from "./allow-list-B_ToXtew.mjs";
2
2
  import { t as getDiscordRuntime } from "./runtime-DgnVQ7zW.mjs";
3
- import { D as createDiscordLivePolicyReader, O as mapGatewayDispatchData } from "./provider-DUTsZJHz.mjs";
4
- import { E as hasDiscordMessageStickers, T as resolveDiscordCdnPolicy, b as resolveDiscordMessageText, j as resolveDiscordMessageChannelId, k as resolveDiscordReferencedReplyMessageId } from "./transcripts-source-fRvFsZng.mjs";
3
+ import { D as createDiscordLivePolicyReader, O as mapGatewayDispatchData } from "./provider-D2gXZbGd.mjs";
4
+ import { E as hasDiscordMessageStickers, T as resolveDiscordCdnPolicy, b as resolveDiscordMessageText, j as resolveDiscordMessageChannelId, k as resolveDiscordReferencedReplyMessageId } from "./transcripts-source-MRAZocrc.mjs";
5
5
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
6
6
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
7
7
  import { danger } from "openclaw/plugin-sdk/runtime-env";
@@ -195,7 +195,7 @@ function createDiscordAvatarResolver() {
195
195
  }
196
196
  //#endregion
197
197
  //#region extensions/discord/src/monitor/message-run-queue.ts
198
- const loadMessageProcessRuntime = createLazyRuntimeModule(() => import("./message-handler.process-BZeWmSNC.mjs"));
198
+ const loadMessageProcessRuntime = createLazyRuntimeModule(() => import("./message-handler.process-1dRMGRR1.mjs"));
199
199
  async function processDiscordQueuedMessage(params) {
200
200
  const abortSignal = params.job.context.abortSignal && params.lifecycleSignal ? AbortSignal.any([params.job.context.abortSignal, params.lifecycleSignal]) : params.job.context.abortSignal ?? params.lifecycleSignal;
201
201
  try {
@@ -279,7 +279,7 @@ function createDiscordMessageRunQueue(params) {
279
279
  }
280
280
  //#endregion
281
281
  //#region extensions/discord/src/monitor/message-dispatcher.ts
282
- const loadMessagePreflightRuntime = createLazyRuntimeModule(() => import("./message-handler.preflight-BqUw7LWb.mjs"));
282
+ const loadMessagePreflightRuntime = createLazyRuntimeModule(() => import("./message-handler.preflight-DD0kun2e.mjs"));
283
283
  function createDiscordMessageDispatcher(params) {
284
284
  const readPolicy = params.readPolicy ?? createDiscordLivePolicyReader({
285
285
  ...params,
@@ -2,13 +2,13 @@ import { c as resolveDefaultDiscordAccountId } from "./accounts-ljrzXBJi.mjs";
2
2
  import { C as resolveDiscordSystemLocation, S as formatDiscordUserTag, a as normalizeDiscordDisplaySlug, f as resolveDiscordGuildEntry, h as resolveDiscordMentionPolicy, l as resolveDiscordChannelConfigWithFallback, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState, w as resolveTimestampMs } from "./allow-list-B_ToXtew.mjs";
3
3
  import { Q as Message, pt as getChannelMessage, t as discord_exports } from "./discord-Cl2OPTZ6.mjs";
4
4
  import { n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./timeouts-CuNARfyw.mjs";
5
- import { b as resolveDiscordRuntimeBindingConversationId, g as resolveDiscordEffectiveRoute, h as resolveDiscordConversationRoute, p as buildDiscordRoutePeer, v as resolveDiscordConversationIdentity } from "./outbound-session-route-CsHHPxsQ.mjs";
6
- import { n as resolveDiscordConversationBindingRouteAsync } from "./conversation-binding-route-fdYsXexV.mjs";
5
+ import { b as resolveDiscordRuntimeBindingConversationId, g as resolveDiscordEffectiveRoute, h as resolveDiscordConversationRoute, p as buildDiscordRoutePeer, v as resolveDiscordConversationIdentity } from "./outbound-session-route-D-qWvLfS.mjs";
6
+ import { n as resolveDiscordConversationBindingRouteAsync } from "./conversation-binding-route-Dcqrf96n.mjs";
7
7
  import { n as resolveDiscordChannelInfoSafe, r as resolveDiscordChannelNameSafe } from "./channel-access-DasWY_OV.mjs";
8
- import { A as resolveDiscordDmCommandAccess, E as handleDiscordDmCommandDecision, j as resolveDiscordTextCommandAccess, n as resolveDiscordPreflightChannelAccess } from "./provider-DUTsZJHz.mjs";
9
- import { A as resolveDiscordChannelInfo, C as resolveMediaList, D as resolveDiscordMessageStickers, O as resolveDiscordReferencedReplyMessage, S as resolveForwardedMediaList, _ as resolveDiscordMessageBatch, b as resolveDiscordMessageText, j as resolveDiscordMessageChannelId, v as resolveDiscordMessageHistoryText, y as resolveDiscordMessageMentionDocuments } from "./transcripts-source-fRvFsZng.mjs";
8
+ import { A as resolveDiscordDmCommandAccess, E as handleDiscordDmCommandDecision, j as resolveDiscordTextCommandAccess, n as resolveDiscordPreflightChannelAccess } from "./provider-D2gXZbGd.mjs";
9
+ import { A as resolveDiscordChannelInfo, C as resolveMediaList, D as resolveDiscordMessageStickers, O as resolveDiscordReferencedReplyMessage, S as resolveForwardedMediaList, _ as resolveDiscordMessageBatch, b as resolveDiscordMessageText, j as resolveDiscordMessageChannelId, v as resolveDiscordMessageHistoryText, y as resolveDiscordMessageMentionDocuments } from "./transcripts-source-MRAZocrc.mjs";
10
10
  import { n as resolveDiscordWebhookId, t as resolveDiscordSenderIdentity } from "./sender-identity-BNBvGt1l.mjs";
11
- import { a as createDiscordHistorySenderProvenance, c as hasRawDiscordUserMention, d as matchesActiveDiscordMentionPatterns, f as resolveDiscordMentionState, i as loadSystemEventsRuntime, l as isBoundThreadBotSystemMessage, m as shouldIgnoreBoundThreadWebhookMessage, n as loadDiscordThreadingRuntime, p as resolveInjectedBoundThreadLookupRecord, r as loadPreflightAudioRuntime, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo, u as isDiscordThreadChannelMessage } from "./message-handler.preflight-pluralkit-BU9I_X-b.mjs";
11
+ import { a as createDiscordHistorySenderProvenance, c as hasRawDiscordUserMention, d as matchesActiveDiscordMentionPatterns, f as resolveDiscordMentionState, i as loadSystemEventsRuntime, l as isBoundThreadBotSystemMessage, m as shouldIgnoreBoundThreadWebhookMessage, n as loadDiscordThreadingRuntime, p as resolveInjectedBoundThreadLookupRecord, r as loadPreflightAudioRuntime, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo, u as isDiscordThreadChannelMessage } from "./message-handler.preflight-pluralkit-DQygfoVJ.mjs";
12
12
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
13
13
  import { getChildLogger, logVerbose, shouldLogVerbose } from "openclaw/plugin-sdk/runtime-env";
14
14
  import { MessageReferenceType, MessageType } from "discord-api-types/v10";
@@ -26,7 +26,7 @@ import { shouldHandleTextCommands } from "openclaw/plugin-sdk/command-surface";
26
26
  import { createChannelHistoryWindow } from "openclaw/plugin-sdk/reply-history";
27
27
  //#region extensions/discord/src/monitor/message-handler.dm-preflight.ts
28
28
  const loadConversationRuntime$1 = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/conversation-binding-runtime"));
29
- const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-yR1hfybW.mjs").then((n) => n.t));
29
+ const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-Ca810XtV.mjs").then((n) => n.t));
30
30
  async function resolveDiscordDmPreflightAccess(params) {
31
31
  if (params.dmPolicy === "disabled") {
32
32
  logVerbose("discord: drop dm (dmPolicy: disabled)");
@@ -1,5 +1,5 @@
1
1
  import { A as isDiscordThreadChannelType } from "./allow-list-B_ToXtew.mjs";
2
- import { D as resolveDiscordMessageStickers } from "./transcripts-source-fRvFsZng.mjs";
2
+ import { D as resolveDiscordMessageStickers } from "./transcripts-source-MRAZocrc.mjs";
3
3
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
4
4
  import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
5
5
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -114,7 +114,7 @@ function resolveDiscordHistoryMediaIds(message) {
114
114
  const loadPluralKitRuntime = createLazyRuntimeModule(() => import("./pluralkit-B64dfq_j.mjs").then((n) => n.n));
115
115
  const loadPreflightAudioRuntime = createLazyRuntimeModule(() => import("./preflight-audio-wWgsZG5F.mjs"));
116
116
  const loadSystemEventsRuntime = createLazyRuntimeModule(() => import("./system-events-DGsxf-l9.mjs"));
117
- const loadDiscordThreadingRuntime = createLazyRuntimeModule(() => import("./threading-Cg_QRc8s.mjs").then((n) => n.t));
117
+ const loadDiscordThreadingRuntime = createLazyRuntimeModule(() => import("./threading-DJjzMR2f.mjs").then((n) => n.t));
118
118
  //#endregion
119
119
  //#region extensions/discord/src/monitor/message-handler.preflight-pluralkit.ts
120
120
  async function resolveDiscordPreflightPluralKitInfo(params) {
@@ -1,21 +1,21 @@
1
1
  import { m as resolveDiscordMaxLinesPerMessage } from "./accounts-ljrzXBJi.mjs";
2
2
  import { i as normalizeDiscordAllowList, o as normalizeDiscordSlug, w as resolveTimestampMs } from "./allow-list-B_ToXtew.mjs";
3
- import { F as createDiscordRuntimeAccountContext, O as resolveDiscordMessageFlags, P as createDiscordRestClient, u as resolveDiscordTargetChannelId } from "./send.shared-iGf1rqAm.mjs";
3
+ import { F as createDiscordRuntimeAccountContext, O as resolveDiscordMessageFlags, P as createDiscordRestClient, u as resolveDiscordTargetChannelId } from "./send.shared-C2J1g_uJ.mjs";
4
4
  import { G as withDiscordRequestAuthority, Q as Message, W as captureDiscordRequestAuthority, dt as editChannelMessage, t as discord_exports, ut as deleteChannelMessage, vt as getGuildMember } from "./discord-Cl2OPTZ6.mjs";
5
- import { v as chunkDiscordTextWithMode } from "./send.receipt-eE3zLTDH.mjs";
5
+ import { v as chunkDiscordTextWithMode } from "./send.receipt-DkwJ1h9E.mjs";
6
6
  import { n as resolveDiscordChannelId } from "./target-parsing-C-HyNxcE.mjs";
7
- import { a as removeReactionDiscord, r as reactMessageDiscord } from "./send-yR1hfybW.mjs";
8
- import { o as discordTextHasBroadcastMention } from "./send.outbound-B5vQwgUK.mjs";
7
+ import { a as removeReactionDiscord, r as reactMessageDiscord } from "./send-Ca810XtV.mjs";
8
+ import { o as discordTextHasBroadcastMention } from "./send.outbound-ByYCrfta.mjs";
9
9
  import { n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS, t as DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS } from "./timeouts-CuNARfyw.mjs";
10
- import "./targets-UbCpek5o.mjs";
11
- import { C as discordInboundEventDelivery, p as buildDiscordRoutePeer, v as resolveDiscordConversationIdentity } from "./outbound-session-route-CsHHPxsQ.mjs";
12
- import { t as DISCORD_TEXT_CHUNK_LIMIT } from "./outbound-adapter-DBwgKemw.mjs";
13
- import { T as createDiscordSupplementalContextAccessChecker, c as formatDiscordReplySkip, d as buildGuildLabel, f as resolveReplyContext, l as sanitizeDiscordFrontChannelReplyPayloads, o as deliverDiscordReply, s as formatDiscordReplyDeliveryFailure, u as buildDirectLabel, w as buildDiscordInboundAccessContext } from "./provider-DUTsZJHz.mjs";
14
- import { D as resolveDiscordMessageStickers, b as resolveDiscordMessageText, h as resolveDiscordThreadStarter, k as resolveDiscordReferencedReplyMessageId, v as resolveDiscordMessageHistoryText, w as resolveReferencedReplyMediaList, x as formatDiscordMediaText } from "./transcripts-source-fRvFsZng.mjs";
10
+ import "./targets-C0qD28Sz.mjs";
11
+ import { C as discordInboundEventDelivery, p as buildDiscordRoutePeer, v as resolveDiscordConversationIdentity } from "./outbound-session-route-D-qWvLfS.mjs";
12
+ import { t as DISCORD_TEXT_CHUNK_LIMIT } from "./outbound-adapter-gpo_85fY.mjs";
13
+ import { T as createDiscordSupplementalContextAccessChecker, c as formatDiscordReplySkip, d as buildGuildLabel, f as resolveReplyContext, l as sanitizeDiscordFrontChannelReplyPayloads, o as deliverDiscordReply, s as formatDiscordReplyDeliveryFailure, u as buildDirectLabel, w as buildDiscordInboundAccessContext } from "./provider-D2gXZbGd.mjs";
14
+ import { D as resolveDiscordMessageStickers, b as resolveDiscordMessageText, h as resolveDiscordThreadStarter, k as resolveDiscordReferencedReplyMessageId, v as resolveDiscordMessageHistoryText, w as resolveReferencedReplyMediaList, x as formatDiscordMediaText } from "./transcripts-source-MRAZocrc.mjs";
15
15
  import { n as resolveDiscordWebhookId, t as resolveDiscordSenderIdentity } from "./sender-identity-BNBvGt1l.mjs";
16
- import { n as resolveDiscordAutoThreadReplyPlan } from "./threading-Cg_QRc8s.mjs";
16
+ import { n as resolveDiscordAutoThreadReplyPlan } from "./threading-DJjzMR2f.mjs";
17
17
  import { t as beginDiscordActiveTurnThreadRoute } from "./active-turn-thread-route-C4tp9noA.mjs";
18
- import { a as createDiscordHistorySenderProvenance, l as isBoundThreadBotSystemMessage, m as shouldIgnoreBoundThreadWebhookMessage, o as filterDiscordHistoryEntriesForContext, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo } from "./message-handler.preflight-pluralkit-BU9I_X-b.mjs";
18
+ import { a as createDiscordHistorySenderProvenance, l as isBoundThreadBotSystemMessage, m as shouldIgnoreBoundThreadWebhookMessage, o as filterDiscordHistoryEntriesForContext, s as resolveDiscordHistoryMediaIds, t as resolveDiscordPreflightPluralKitInfo } from "./message-handler.preflight-pluralkit-DQygfoVJ.mjs";
19
19
  import { t as sendTyping } from "./typing-CNlSKY5S.mjs";
20
20
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
21
21
  import { danger, logVerbose, shouldLogVerbose, sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
@@ -1,7 +1,7 @@
1
1
  import { t as createDiscordActionGate } from "./accounts-ljrzXBJi.mjs";
2
- import { d as normalizeDiscordMessagingTarget, f as normalizeDiscordOutboundTarget, g as hasDiscordMessageCreateAmbiguity, i as toDiscordOutboundDeliveryResult, n as createDiscordSendReceiptFromResults, p as canFallbackDiscordWebhookSend, s as resolveDiscordReplyReference, t as createDiscordSendReceipt, v as chunkDiscordTextWithMode } from "./send.receipt-eE3zLTDH.mjs";
2
+ import { d as normalizeDiscordMessagingTarget, f as normalizeDiscordOutboundTarget, g as hasDiscordMessageCreateAmbiguity, i as toDiscordOutboundDeliveryResult, n as createDiscordSendReceiptFromResults, p as canFallbackDiscordWebhookSend, s as resolveDiscordReplyReference, t as createDiscordSendReceipt, v as chunkDiscordTextWithMode } from "./send.receipt-DkwJ1h9E.mjs";
3
3
  import { t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
4
- import { C as discordInboundEventDelivery, a as resolveDiscordComponentSpec, c as formatDiscordApprovalDisplayValue, n as DISCORD_PRESENTATION_CAPABILITIES, o as sendDiscordComponentMessageLazy, r as buildDiscordPresentationPayload, w as notifyDiscordInboundEventOutboundPayloadSuccess, y as resolveDiscordCurrentConversationIdentity } from "./outbound-session-route-CsHHPxsQ.mjs";
4
+ import { C as discordInboundEventDelivery, a as resolveDiscordComponentSpec, c as formatDiscordApprovalDisplayValue, n as DISCORD_PRESENTATION_CAPABILITIES, o as sendDiscordComponentMessageLazy, r as buildDiscordPresentationPayload, w as notifyDiscordInboundEventOutboundPayloadSuccess, y as resolveDiscordCurrentConversationIdentity } from "./outbound-session-route-D-qWvLfS.mjs";
5
5
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
6
6
  import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
7
7
  import { asOptionalRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -137,7 +137,7 @@ function normalizeDiscordApprovalPayload(payload) {
137
137
  }
138
138
  //#endregion
139
139
  //#region extensions/discord/src/outbound-send-context.ts
140
- const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-yR1hfybW.mjs").then((n) => n.t));
140
+ const loadDiscordSendRuntime = createLazyRuntimeModule(() => import("./send-Ca810XtV.mjs").then((n) => n.t));
141
141
  function resolveDiscordFormattingOptions(ctx) {
142
142
  const formatting = ctx.formatting;
143
143
  return {
@@ -333,8 +333,8 @@ async function sendDiscordOutboundPayload(params) {
333
333
  const DISCORD_TEXT_CHUNK_LIMIT = 2e3;
334
334
  const DISCORD_PRECHUNK_MAX_LINES = Number.MAX_SAFE_INTEGER;
335
335
  const log = createSubsystemLogger("discord/outbound");
336
- const loadDiscordThreadBindings = createLazyRuntimeModule(() => import("./thread-bindings-Dsc3zsrI.mjs").then((n) => n.i));
337
- const loadDiscordComponentSendRuntime = createLazyRuntimeModule(() => import("./send.components--dxMjc2O.mjs").then((n) => n.i));
336
+ const loadDiscordThreadBindings = createLazyRuntimeModule(() => import("./thread-bindings-c0WwzyHH.mjs").then((n) => n.i));
337
+ const loadDiscordComponentSendRuntime = createLazyRuntimeModule(() => import("./send.components-DxpLdHrr.mjs").then((n) => n.i));
338
338
  function resolveDiscordDeliveryOptions(params) {
339
339
  return {
340
340
  onPlatformSendDispatch: params.onPlatformSendDispatch,
@@ -1,10 +1,10 @@
1
1
  import { i as listDiscordAccountIds, l as resolveDiscordAccount, t as createDiscordActionGate } from "./accounts-ljrzXBJi.mjs";
2
2
  import { t as inspectDiscordAccount } from "./account-inspect-8cCu6uPG.mjs";
3
3
  import { A as isDiscordThreadChannelType } from "./allow-list-B_ToXtew.mjs";
4
- import { d as normalizeDiscordMessagingTarget, u as matchesDiscordToolContextTarget } from "./send.receipt-eE3zLTDH.mjs";
4
+ import { d as normalizeDiscordMessagingTarget, u as matchesDiscordToolContextTarget } from "./send.receipt-DkwJ1h9E.mjs";
5
5
  import { t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
6
6
  import { h as readDiscordComponentSpec, m as coerceDiscordComponentParam } from "./components-C_cuoW1q.mjs";
7
- import { n as resolveDiscordCommandOwnerEntries } from "./command-owners-D78sAoOz.mjs";
7
+ import { n as resolveDiscordCommandOwnerEntries } from "./command-owners-C7rUdqUX.mjs";
8
8
  import { createLazyRuntimeMethod, createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
9
9
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
10
10
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
@@ -223,7 +223,7 @@ function resolveDiscordThreadReplyTarget(args) {
223
223
  const target = threadId !== void 0 ? `channel:${threadId}` : normalizeOptionalString(args.channelId) ?? normalizeOptionalString(args.to) ?? normalizeOptionalString(args.target);
224
224
  return target ? normalizeDiscordMessagingTarget(target) : void 0;
225
225
  }
226
- const loadDiscordChannelActionsRuntime = createLazyRuntimeModule(() => import("./handle-action-0-FZD3Am.mjs"));
226
+ const loadDiscordChannelActionsRuntime = createLazyRuntimeModule(() => import("./handle-action-CRH5-aLm.mjs"));
227
227
  const discordActionGroups = [
228
228
  {
229
229
  gate: "polls",
@@ -659,7 +659,7 @@ const DISCORD_PRESENTATION_CAPABILITIES = {
659
659
  }
660
660
  }
661
661
  };
662
- const sendDiscordComponentMessageLazy = createLazyRuntimeMethod(createLazyRuntimeModule(() => import("./send.components--dxMjc2O.mjs").then((n) => n.i)), (runtime) => runtime.sendDiscordComponentMessage);
662
+ const sendDiscordComponentMessageLazy = createLazyRuntimeMethod(createLazyRuntimeModule(() => import("./send.components-DxpLdHrr.mjs").then((n) => n.i)), (runtime) => runtime.sendDiscordComponentMessage);
663
663
  const loadDiscordSharedInteractive = createLazyRuntimeModule(() => import("./components-C_cuoW1q.mjs").then((n) => n.a));
664
664
  function addPayloadTextFallback(spec, payload) {
665
665
  return spec.text ? spec : {
@@ -1,26 +1,26 @@
1
1
  import { g as resolveDiscordToken, h as normalizeDiscordToken, l as resolveDiscordAccount, m as resolveDiscordMaxLinesPerMessage, p as resolveDiscordAccountDmPolicy, s as mergeDiscordAccountConfig, u as resolveDiscordAccountAllowFrom } from "./accounts-ljrzXBJi.mjs";
2
2
  import { A as isDiscordThreadChannelType, D as getDiscordEndpointRuntime, E as assertDiscordEndpointGatewayUrl, S as formatDiscordUserTag, _ as resolveDiscordOwnerAllowFrom, a as normalizeDiscordDisplaySlug, b as shouldEmitDiscordReactionNotification, c as resolveDiscordChannelConfig, f as resolveDiscordGuildEntry, g as resolveDiscordOwnerAccess, i as normalizeDiscordAllowList, l as resolveDiscordChannelConfigWithFallback, m as resolveDiscordMemberAllowed, n as hasConfiguredDiscordChannels, o as normalizeDiscordSlug, p as resolveDiscordMemberAccessState, r as isDiscordGroupAllowedByPolicy, s as resolveDiscordAllowListMatch, u as resolveDiscordChannelPolicyCommandAuthorizer, w as resolveTimestampMs, x as formatDiscordReactionEmoji, y as resolveGroupDmAllow } from "./allow-list-B_ToXtew.mjs";
3
- import { B as validateDiscordProxyUrl, C as hasAnyChannelPermissionDiscord, G as unregisterGateway, P as createDiscordRestClient, R as DISCORD_REST_TIMEOUT_MS, V as withValidatedDiscordProxy, W as registerGateway, y as canViewDiscordGuildChannel } from "./send.shared-iGf1rqAm.mjs";
3
+ import { B as validateDiscordProxyUrl, C as hasAnyChannelPermissionDiscord, G as unregisterGateway, P as createDiscordRestClient, R as DISCORD_REST_TIMEOUT_MS, V as withValidatedDiscordProxy, W as registerGateway, y as canViewDiscordGuildChannel } from "./send.shared-C2J1g_uJ.mjs";
4
4
  import { i as setPresence, t as clearPresences } from "./presence-cache-DCeTsL73.mjs";
5
5
  import { $ as User, A as StringSelectMenu, D as Row, F as Plugin, K as hasDiscordV2Components, P as Client, Q as Message, R as RateLimitError, X as CommandWithSubcommands, Y as Command, Z as Guild, a as MessageCreateListener, c as PresenceUpdateListener, d as ThreadUpdateListener, et as BaseMessageInteractiveComponent, h as Modal, i as InteractionCreateListener, j as TextDisplay, k as Separator, l as ReadyListener, n as GuildCreateListener, o as MessageReactionAddListener, r as GuildDeleteListener, s as MessageReactionRemoveListener, t as discord_exports, u as ThreadDeleteListener, x as Container, y as Button } from "./discord-Cl2OPTZ6.mjs";
6
- import { v as chunkDiscordTextWithMode } from "./send.receipt-eE3zLTDH.mjs";
6
+ import { v as chunkDiscordTextWithMode } from "./send.receipt-DkwJ1h9E.mjs";
7
7
  import { a as isDiscordRateLimitResponseBody, s as summarizeDiscordResponseBody } from "./api-CtmE1OUN.mjs";
8
- import { _ as readMessagesDiscord, s as sendVoiceMessageDiscord } from "./send-yR1hfybW.mjs";
9
- import { s as formatMention, t as sendMessageDiscord } from "./send.outbound-B5vQwgUK.mjs";
8
+ import { _ as readMessagesDiscord, s as sendVoiceMessageDiscord } from "./send-Ca810XtV.mjs";
9
+ import { s as formatMention, t as sendMessageDiscord } from "./send.outbound-ByYCrfta.mjs";
10
10
  import { l as withAbortTimeout } from "./timeouts-CuNARfyw.mjs";
11
11
  import { C as parseDiscordActivityCustomIdForInteraction, D as parseDiscordModalCustomIdForInteraction, E as parseDiscordModalCustomId, O as decodeCustomIdComponent, T as parseDiscordComponentCustomIdForInteraction, c as parseExecApprovalData, d as buildDiscordComponentMessage, k as encodeCustomIdComponent, o as parseDiscordQuestionData, w as parseDiscordComponentCustomId, y as buildDiscordActivityCustomId } from "./components-C_cuoW1q.mjs";
12
- import { a as registerDiscordComponentEntries, o as resolveDiscordComponentEntryWithPersistence, s as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components--dxMjc2O.mjs";
12
+ import { a as registerDiscordComponentEntries, o as resolveDiscordComponentEntryWithPersistence, s as resolveDiscordModalEntryWithPersistence, t as editDiscordComponentMessage } from "./send.components-DxpLdHrr.mjs";
13
13
  import { t as getDiscordRuntime } from "./runtime-DgnVQ7zW.mjs";
14
- import { n as getDiscordActivitiesRuntime } from "./runtime-Cg5pIBm_.mjs";
15
- import { t as resolveDiscordCommandOwnerAllowFrom } from "./command-owners-D78sAoOz.mjs";
16
- import { A as isDiscordExecApprovalClientEnabled, O as getDiscordExecApprovalApprovers, a as resolveDiscordComponentSpec, c as formatDiscordApprovalDisplayValue, d as setDiscordChannelPolicyBindings, f as buildDiscordConversationRouteContext, g as resolveDiscordEffectiveRoute, m as resolveDiscordBoundConversationRoute, n as DISCORD_PRESENTATION_CAPABILITIES, p as buildDiscordRoutePeer, r as buildDiscordPresentationPayload, s as DISCORD_APPROVAL_ALLOWED_MENTIONS, v as resolveDiscordConversationIdentity } from "./outbound-session-route-CsHHPxsQ.mjs";
14
+ import { n as getDiscordActivitiesRuntime } from "./runtime-BRsj76Px.mjs";
15
+ import { t as resolveDiscordCommandOwnerAllowFrom } from "./command-owners-C7rUdqUX.mjs";
16
+ import { A as isDiscordExecApprovalClientEnabled, O as getDiscordExecApprovalApprovers, a as resolveDiscordComponentSpec, c as formatDiscordApprovalDisplayValue, d as setDiscordChannelPolicyBindings, f as buildDiscordConversationRouteContext, g as resolveDiscordEffectiveRoute, m as resolveDiscordBoundConversationRoute, n as DISCORD_PRESENTATION_CAPABILITIES, p as buildDiscordRoutePeer, r as buildDiscordPresentationPayload, s as DISCORD_APPROVAL_ALLOWED_MENTIONS, v as resolveDiscordConversationIdentity } from "./outbound-session-route-D-qWvLfS.mjs";
17
17
  import { n as discordIngressIdentity, t as selectDiscordLivePolicyConfig } from "./live-policy-config-BPoB3eQi.mjs";
18
18
  import { t as resolveDiscordChannelAllowlist } from "./resolve-channels-UdT38DzU.mjs";
19
19
  import { t as resolveDiscordUserAllowlist } from "./resolve-users-DnCsrXZ_.mjs";
20
- import { a as isThreadArchived, n as getThreadBindingManager } from "./thread-bindings.manager-BMpmKLQh.mjs";
20
+ import { a as isThreadArchived, n as getThreadBindingManager } from "./thread-bindings.manager-B7HFHXrI.mjs";
21
21
  import { n as resolveDiscordChannelInfoSafe, o as resolveDiscordChannelTopicSafe, r as resolveDiscordChannelNameSafe } from "./channel-access-DasWY_OV.mjs";
22
22
  import { a as probeDiscordApplicationId, r as parseApplicationIdFromToken } from "./probe-D3P1x4aN.mjs";
23
- import { O as resolveDiscordReferencedReplyMessage, a as authorizeDiscordVoiceIngress, c as resolveDiscordVoiceEnabled, i as setDiscordTranscriptsVoiceManager, k as resolveDiscordReferencedReplyMessageId, l as resolveDiscordThreadLikeChannelContext, o as resolveDiscordVoiceAccess, u as resolveFetchedDiscordThreadLikeChannelContext } from "./transcripts-source-fRvFsZng.mjs";
23
+ import { O as resolveDiscordReferencedReplyMessage, a as authorizeDiscordVoiceIngress, c as resolveDiscordVoiceEnabled, i as setDiscordTranscriptsVoiceManager, k as resolveDiscordReferencedReplyMessageId, l as resolveDiscordThreadLikeChannelContext, o as resolveDiscordVoiceAccess, u as resolveFetchedDiscordThreadLikeChannelContext } from "./transcripts-source-MRAZocrc.mjs";
24
24
  import { t as resolveDiscordSenderIdentity } from "./sender-identity-BNBvGt1l.mjs";
25
25
  import { n as hasDiscordApprovalControl, t as discordApprovalMessageUpdates } from "./approval-message-updates-wbUqLtLI.mjs";
26
26
  import { createRequire } from "node:module";
@@ -5561,8 +5561,8 @@ const discordProviderRuntime = {
5561
5561
  probeDiscordApplicationId,
5562
5562
  createDiscordNativeCommand,
5563
5563
  runDiscordGatewayLifecycle,
5564
- loadDiscordVoiceRuntime: () => import("./voice-runtime-DHDNu0fz.mjs").then((n) => n.t),
5565
- loadDiscordProviderSessionRuntime: () => import("./provider-session.runtime-Ucr3XodI.mjs"),
5564
+ loadDiscordVoiceRuntime: () => import("./voice-runtime-_LfZ3Za7.mjs").then((n) => n.t),
5565
+ loadDiscordProviderSessionRuntime: () => import("./provider-session.runtime-3bl84wqI.mjs"),
5566
5566
  createClient: (...args) => new Client(...args),
5567
5567
  resolveDiscordAccount,
5568
5568
  resolveNativeCommandsEnabled,
@@ -5866,7 +5866,20 @@ async function resolveDiscordProviderCommandSpecs(params) {
5866
5866
  const listSkillCommands = params.prepareSkillCommandsForAgents ?? prepareSkillCommandsForAgents;
5867
5867
  const listNativeCommandSpecs = params.listNativeCommandSpecsForConfig ?? listNativeCommandSpecsForConfig;
5868
5868
  const maxDiscordCommands = params.maxDiscordCommands ?? 100;
5869
- const pluginCommandSpecs = params.nativeEnabled ? (await loadPluginCommandRuntime()).createPluginCommandRuntime().listNativeCandidates("discord") : [];
5869
+ const pluginCommandSpecs = [];
5870
+ if (params.nativeEnabled) {
5871
+ const candidates = (await loadPluginCommandRuntime()).createPluginCommandRuntime().listNativeCandidates("discord");
5872
+ for (const command of candidates) {
5873
+ if (command.name.length > 32) {
5874
+ params.runtime.error?.(danger(`discord: plugin command "/${command.name.slice(0, 32)}…" exceeds the 32-character name limit. Set a shorter Discord native alias. Skipping.`));
5875
+ continue;
5876
+ }
5877
+ pluginCommandSpecs.push({
5878
+ ...command,
5879
+ name: command.name.toLowerCase()
5880
+ });
5881
+ }
5882
+ }
5870
5883
  const onCollision = (normalizedName) => {
5871
5884
  params.runtime.error?.(danger(`discord: plugin command "/${normalizedName}" duplicates an existing native command. Skipping.`));
5872
5885
  };
@@ -8717,26 +8730,41 @@ async function createDiscordMonitorClient(params) {
8717
8730
  if (!client.plugins.some((entry) => entry.id === voicePlugin.id)) client.plugins.push(voicePlugin);
8718
8731
  }
8719
8732
  const gateway = client.getPlugin("gateway");
8720
- await waitForDiscordGatewayPluginRegistration(gateway);
8721
- const gatewaySupervisor = createDiscordGatewaySupervisor({
8722
- ...params,
8723
- gateway
8724
- });
8725
- if (gateway) {
8726
- autoPresenceController = createDiscordAutoPresenceController({
8733
+ let gatewaySupervisor;
8734
+ try {
8735
+ await waitForDiscordGatewayPluginRegistration(gateway);
8736
+ gatewaySupervisor = createDiscordGatewaySupervisor({
8727
8737
  ...params,
8728
- gateway,
8729
- log: (message) => params.runtime.log?.(message)
8738
+ gateway
8730
8739
  });
8731
- autoPresenceController.start();
8740
+ if (gateway) {
8741
+ autoPresenceController = createDiscordAutoPresenceController({
8742
+ ...params,
8743
+ gateway,
8744
+ log: (message) => params.runtime.log?.(message)
8745
+ });
8746
+ autoPresenceController.start();
8747
+ }
8748
+ return {
8749
+ client,
8750
+ gateway,
8751
+ gatewaySupervisor,
8752
+ autoPresenceController,
8753
+ eventQueueOpts
8754
+ };
8755
+ } catch (err) {
8756
+ try {
8757
+ gateway?.disconnect();
8758
+ } catch (cleanupErr) {
8759
+ params.runtime.error?.(danger("discord: failed to disconnect gateway during startup cleanup: " + String(cleanupErr)));
8760
+ }
8761
+ try {
8762
+ gatewaySupervisor?.dispose();
8763
+ } catch (cleanupErr) {
8764
+ params.runtime.error?.(danger("discord: failed to dispose supervisor during startup cleanup: " + String(cleanupErr)));
8765
+ }
8766
+ throw err;
8732
8767
  }
8733
- return {
8734
- client,
8735
- gateway,
8736
- gatewaySupervisor,
8737
- autoPresenceController,
8738
- eventQueueOpts
8739
- };
8740
8768
  }
8741
8769
  async function fetchDiscordBotIdentity(params) {
8742
8770
  params.logStartupPhase("fetch-bot-identity:start");
@@ -1,6 +1,6 @@
1
- import { i as createNoopThreadBindingManager, t as createThreadBindingManager } from "./thread-bindings.manager-BMpmKLQh.mjs";
2
- import { l as reconcileAcpThreadBindingsOnStartup } from "./thread-bindings-Dsc3zsrI.mjs";
3
- import { t as createDiscordMessageHandler } from "./message-handler-CtR2w7W_.mjs";
1
+ import { i as createNoopThreadBindingManager, t as createThreadBindingManager } from "./thread-bindings.manager-B7HFHXrI.mjs";
2
+ import { l as reconcileAcpThreadBindingsOnStartup } from "./thread-bindings-c0WwzyHH.mjs";
3
+ import { t as createDiscordMessageHandler } from "./message-handler-BvzZOXLT.mjs";
4
4
  import { resolveThreadBindingIdleTimeoutMs, resolveThreadBindingMaxAgeMs, resolveThreadBindingsEnabled } from "openclaw/plugin-sdk/conversation-runtime";
5
5
  import { getAcpSessionManager, isAcpRuntimeError, rethrowIncognitoSessionError } from "openclaw/plugin-sdk/acp-runtime";
6
6
  export { createDiscordMessageHandler, createNoopThreadBindingManager, createThreadBindingManager, getAcpSessionManager, isAcpRuntimeError, reconcileAcpThreadBindingsOnStartup, resolveThreadBindingIdleTimeoutMs, resolveThreadBindingMaxAgeMs, resolveThreadBindingsEnabled, rethrowIncognitoSessionError };
@@ -0,0 +1 @@
1
+ export { t as monitorDiscordProvider } from "./provider-D2gXZbGd.mjs";
@@ -1,8 +1,8 @@
1
1
  import { _ as setDiscordAudioOutputStatus, h as restoreDiscordAudioError, l as createDiscordPcmToRealtimeConverter, m as getDiscordAudioOutputStatus, p as DiscordAudioOutputStatus } from "./receive-recovery-CKvaG2Hf.mjs";
2
2
  import { t as resolveDiscordOutputAudioDelta } from "./output-activity-uBpMSX75.mjs";
3
3
  import { n as discordRealtimeVoiceSecretOwnerId } from "./secret-config-contract-CIsH7R3B.mjs";
4
- import { y as logVoiceVerbose } from "./provider-DUTsZJHz.mjs";
5
- import { a as logDiscordVoiceAgentControlResult, c as formatVoiceLogPreview, i as handleDiscordVoiceAgentControlToolCall, l as shouldLogRealtimeVerboseEvent, n as DiscordRealtimeRecording, o as maybeControlDiscordVoiceAgentRun, r as formatVoiceIngressPrompt, s as formatRealtimeInfoLog } from "./voice-runtime-DHDNu0fz.mjs";
4
+ import { y as logVoiceVerbose } from "./provider-D2gXZbGd.mjs";
5
+ import { a as logDiscordVoiceAgentControlResult, c as formatVoiceLogPreview, i as handleDiscordVoiceAgentControlToolCall, l as shouldLogRealtimeVerboseEvent, n as DiscordRealtimeRecording, o as maybeControlDiscordVoiceAgentRun, r as formatVoiceIngressPrompt, s as formatRealtimeInfoLog } from "./voice-runtime-_LfZ3Za7.mjs";
6
6
  import { MessageChannel } from "node:worker_threads";
7
7
  import { formatErrorMessage, readErrorName, toErrorObject, toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
8
8
  import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
@@ -1,5 +1,5 @@
1
1
  import { _ as selectDiscordActivitiesRuntimeConfig, i as listDiscordAccountIds, l as resolveDiscordAccount, r as isDiscordAccountEnabledForRuntime } from "./accounts-ljrzXBJi.mjs";
2
- import { z as resolveDiscordProxyFetchForAccount } from "./send.shared-iGf1rqAm.mjs";
2
+ import { z as resolveDiscordProxyFetchForAccount } from "./send.shared-C2J1g_uJ.mjs";
3
3
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  //#region extensions/discord/src/activities/config.ts
5
5
  function resolveDiscordActivitiesConfig(account, env = process.env) {
@@ -1,14 +1,14 @@
1
1
  import { c as resolveDefaultDiscordAccountId, s as mergeDiscordAccountConfig, t as createDiscordActionGate } from "./accounts-ljrzXBJi.mjs";
2
2
  import { A as isDiscordThreadChannelType, l as resolveDiscordChannelConfigWithFallback, n as hasConfiguredDiscordChannels, o as normalizeDiscordSlug, r as isDiscordGroupAllowedByPolicy, y as resolveGroupDmAllow } from "./allow-list-B_ToXtew.mjs";
3
- import { C as hasAnyChannelPermissionDiscord, F as createDiscordRuntimeAccountContext, U as getGateway, _ as canManageGuildMemberRoleDiscord, b as fetchChannelPermissionsDiscord, n as buildDiscordTextChunks, u as resolveDiscordTargetChannelId, v as canManageGuildRoleDiscord, w as hasAnyGuildPermissionDiscord, y as canViewDiscordGuildChannel } from "./send.shared-iGf1rqAm.mjs";
3
+ import { C as hasAnyChannelPermissionDiscord, F as createDiscordRuntimeAccountContext, U as getGateway, _ as canManageGuildMemberRoleDiscord, b as fetchChannelPermissionsDiscord, n as buildDiscordTextChunks, u as resolveDiscordTargetChannelId, v as canManageGuildRoleDiscord, w as hasAnyGuildPermissionDiscord, y as canViewDiscordGuildChannel } from "./send.shared-C2J1g_uJ.mjs";
4
4
  import { n as getPresence } from "./presence-cache-DCeTsL73.mjs";
5
- import { a as createReusableDiscordReplyReference, s as resolveDiscordReplyReference } from "./send.receipt-eE3zLTDH.mjs";
5
+ import { a as createReusableDiscordReplyReference, s as resolveDiscordReplyReference } from "./send.receipt-DkwJ1h9E.mjs";
6
6
  import { n as resolveDiscordChannelId, t as parseDiscordTarget } from "./target-parsing-C-HyNxcE.mjs";
7
- import { A as listScheduledEventsDiscord, B as moveChannelDiscord, C as fetchChannelInfoDiscord, D as fetchVoiceStatusDiscord, E as fetchRoleInfoDiscord, F as uploadEmojiDiscord, H as setChannelPermissionDiscord, I as uploadStickerDiscord, L as createChannelDiscord, M as resolveEventCoverImage, N as timeoutMemberDiscord, O as kickMemberDiscord, P as listGuildEmojisDiscord, R as deleteChannelDiscord, S as createScheduledEventDiscord, T as fetchMemberInfoDiscord, V as removeChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as removeRoleDiscord, k as listGuildChannelsDiscord, l as DiscordThreadInitialMessageError, m as listPinsDiscord, n as fetchReactionsDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, w as fetchGuildInfoDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as editChannelDiscord } from "./send-yR1hfybW.mjs";
8
- import { r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-B5vQwgUK.mjs";
9
- import "./targets-UbCpek5o.mjs";
7
+ import { A as listScheduledEventsDiscord, B as moveChannelDiscord, C as fetchChannelInfoDiscord, D as fetchVoiceStatusDiscord, E as fetchRoleInfoDiscord, F as uploadEmojiDiscord, H as setChannelPermissionDiscord, I as uploadStickerDiscord, L as createChannelDiscord, M as resolveEventCoverImage, N as timeoutMemberDiscord, O as kickMemberDiscord, P as listGuildEmojisDiscord, R as deleteChannelDiscord, S as createScheduledEventDiscord, T as fetchMemberInfoDiscord, V as removeChannelPermissionDiscord, _ as readMessagesDiscord, a as removeReactionDiscord, b as addRoleDiscord, d as deleteMessageDiscord, f as editMessageDiscord, g as pinMessageDiscord, h as listThreadsDiscord, i as removeOwnReactionsDiscord, j as removeRoleDiscord, k as listGuildChannelsDiscord, l as DiscordThreadInitialMessageError, m as listPinsDiscord, n as fetchReactionsDiscord, p as fetchMessageDiscord, r as reactMessageDiscord, s as sendVoiceMessageDiscord, u as createThreadDiscord, v as searchMessagesDiscord, w as fetchGuildInfoDiscord, x as banMemberDiscord, y as unpinMessageDiscord, z as editChannelDiscord } from "./send-Ca810XtV.mjs";
8
+ import { r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-ByYCrfta.mjs";
9
+ import "./targets-C0qD28Sz.mjs";
10
10
  import { h as readDiscordComponentSpec, m as coerceDiscordComponentParam } from "./components-C_cuoW1q.mjs";
11
- import { r as sendDiscordComponentMessage } from "./send.components--dxMjc2O.mjs";
11
+ import { r as sendDiscordComponentMessage } from "./send.components-DxpLdHrr.mjs";
12
12
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
13
13
  import { asBoolean, asOptionalRecord, isRecord, normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
14
14
  import { assertMediaNotDataUrl, jsonResult, parseAvailableTags, readNonNegativeIntegerParam, readPositiveIntegerParam, readReactionParams, readStringArrayParam, readStringParam, withNormalizedTimestamp } from "openclaw/plugin-sdk/channel-actions";
@@ -1,10 +1,10 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
2
2
  import { D as getDiscordEndpointRuntime, O as resolveDiscordEndpointAttachmentGuard, T as parseDiscordRetryAfterBodySeconds } from "./allow-list-B_ToXtew.mjs";
3
- import { C as hasAnyChannelPermissionDiscord, D as createDiscordMessageNonce, I as resolveDiscordClientAccountContext, L as resolveDiscordRest, M as parseAndResolveChannelRecipient, N as createDiscordClient, O as resolveDiscordMessageFlags, R as DISCORD_REST_TIMEOUT_MS, S as hasAllGuildPermissionsDiscord, _ as canManageGuildMemberRoleDiscord, a as normalizeEmojiName, b as fetchChannelPermissionsDiscord, c as resolveChannelId, d as sendDiscordChunks, g as DiscordSendError, h as DISCORD_MAX_STICKER_BYTES, j as resolveDiscordSuppressEmbeds, m as DISCORD_MAX_EVENT_COVER_BYTES, n as buildDiscordTextChunks, o as normalizeReactionEmoji, p as DISCORD_MAX_EMOJI_BYTES, r as buildReactionIdentifier, t as buildDiscordSendError, v as canManageGuildRoleDiscord, w as hasAnyGuildPermissionDiscord, x as fetchMemberGuildPermissionsDiscord, y as canViewDiscordGuildChannel } from "./send.shared-iGf1rqAm.mjs";
3
+ import { C as hasAnyChannelPermissionDiscord, D as createDiscordMessageNonce, I as resolveDiscordClientAccountContext, L as resolveDiscordRest, M as parseAndResolveChannelRecipient, N as createDiscordClient, O as resolveDiscordMessageFlags, R as DISCORD_REST_TIMEOUT_MS, S as hasAllGuildPermissionsDiscord, _ as canManageGuildMemberRoleDiscord, a as normalizeEmojiName, b as fetchChannelPermissionsDiscord, c as resolveChannelId, d as sendDiscordChunks, g as DiscordSendError, h as DISCORD_MAX_STICKER_BYTES, j as resolveDiscordSuppressEmbeds, m as DISCORD_MAX_EVENT_COVER_BYTES, n as buildDiscordTextChunks, o as normalizeReactionEmoji, p as DISCORD_MAX_EMOJI_BYTES, r as buildReactionIdentifier, t as buildDiscordSendError, v as canManageGuildRoleDiscord, w as hasAnyGuildPermissionDiscord, x as fetchMemberGuildPermissionsDiscord, y as canViewDiscordGuildChannel } from "./send.shared-C2J1g_uJ.mjs";
4
4
  import { B as isUnknownDiscordVoiceStateError, G as withDiscordRequestAuthority, H as readDiscordMessage, L as DiscordError, R as RateLimitError, U as readRetryAfter, V as readDiscordCode, _t as getGuild, at as createOwnMessageReaction, bt as listGuildEmojis, dt as editChannelMessage, ft as getChannel, gt as unpinChannelMessage, ht as pinChannelMessage, lt as createThread, ot as deleteOwnMessageReaction, pt as getChannelMessage, st as listMessageReactionUsers, ut as deleteChannelMessage, vt as getGuildMember, xt as stripUndefinedFields, yt as getGuildVoiceState, z as isUnknownDiscordMessageError } from "./discord-Cl2OPTZ6.mjs";
5
- import { _ as recordDiscordMessageCreateAmbiguity, a as createReusableDiscordReplyReference, h as createDiscordRetryRunner, m as classifyDiscordDeliveryFailure, n as createDiscordSendReceiptFromResults, o as resolveDiscordReplyMessageId, r as createDiscordSendResult, v as chunkDiscordTextWithMode } from "./send.receipt-eE3zLTDH.mjs";
5
+ import { _ as recordDiscordMessageCreateAmbiguity, a as createReusableDiscordReplyReference, h as createDiscordRetryRunner, m as classifyDiscordDeliveryFailure, n as createDiscordSendReceiptFromResults, o as resolveDiscordReplyMessageId, r as createDiscordSendResult, v as chunkDiscordTextWithMode } from "./send.receipt-DkwJ1h9E.mjs";
6
6
  import { o as parseDiscordHttpErrorBody } from "./api-CtmE1OUN.mjs";
7
- import { a as prepareDiscordOutboundText, n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-B5vQwgUK.mjs";
7
+ import { a as prepareDiscordOutboundText, n as sendPollDiscord, r as sendStickerDiscord, t as sendMessageDiscord } from "./send.outbound-ByYCrfta.mjs";
8
8
  import { n as DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS } from "./timeouts-CuNARfyw.mjs";
9
9
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
10
10
  import { resolvePreferredOpenClawTmpDir, withTempWorkspace } from "openclaw/plugin-sdk/temp-path";
@@ -1,8 +1,8 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
2
- import { D as createDiscordMessageNonce, M as parseAndResolveChannelRecipient, N as createDiscordClient, T as SUPPRESS_NOTIFICATIONS_FLAG, c as resolveChannelId, l as resolveDiscordChannel, t as buildDiscordSendError } from "./send.shared-iGf1rqAm.mjs";
2
+ import { D as createDiscordMessageNonce, M as parseAndResolveChannelRecipient, N as createDiscordClient, T as SUPPRESS_NOTIFICATIONS_FLAG, c as resolveChannelId, l as resolveDiscordChannel, t as buildDiscordSendError } from "./send.shared-C2J1g_uJ.mjs";
3
3
  import { G as withDiscordRequestAuthority, ct as createChannelMessage, dt as editChannelMessage, q as serializePayload } from "./discord-Cl2OPTZ6.mjs";
4
- import { r as createDiscordSendResult } from "./send.receipt-eE3zLTDH.mjs";
5
- import { t as sendMessageDiscord } from "./send.outbound-B5vQwgUK.mjs";
4
+ import { r as createDiscordSendResult } from "./send.receipt-DkwJ1h9E.mjs";
5
+ import { t as sendMessageDiscord } from "./send.outbound-ByYCrfta.mjs";
6
6
  import { d as buildDiscordComponentMessage, f as buildDiscordComponentMessageFlags, g as resolveDiscordComponentAttachmentName } from "./components-C_cuoW1q.mjs";
7
7
  import { n as getOptionalDiscordRuntime } from "./runtime-DgnVQ7zW.mjs";
8
8
  import { hasNonEmptyString, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";