mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 01:01:23 +00:00
fix: route discord native subagent announce to channel target
This commit is contained in:
@@ -790,6 +790,11 @@ async function dispatchDiscordCommandInteraction(params: {
|
||||
Timestamp: Date.now(),
|
||||
CommandAuthorized: commandAuthorized,
|
||||
CommandSource: "native" as const,
|
||||
// Native slash contexts use To=slash:<user> for interaction routing.
|
||||
// For follow-up delivery (for example subagent completion announces),
|
||||
// preserve the real Discord target separately.
|
||||
OriginatingChannel: "discord" as const,
|
||||
OriginatingTo: isDirectMessage ? `user:${user.id}` : `channel:${channelId}`,
|
||||
});
|
||||
|
||||
const { onModelSelected, ...prefixOptions } = createReplyPrefixOptions({
|
||||
|
||||
Reference in New Issue
Block a user