

























@@ -102,6 +102,7 @@ export async function handleDiscordMessageAction(
102102const rawEmbeds = params.embeds;
103103const embeds = Array.isArray(rawEmbeds) ? rawEmbeds : undefined;
104104const silent = readBooleanParam(params, "silent") === true;
105+const suppressEmbeds = readBooleanParam(params, "suppressEmbeds");
105106const sessionKey = readStringParam(params, "__sessionKey");
106107const agentId = readStringParam(params, "__agentId");
107108const threadName = readStringParam(params, "threadName");
@@ -119,6 +120,7 @@ export async function handleDiscordMessageAction(
119120 embeds,
120121 asVoice,
121122 silent,
123+ ...(suppressEmbeds === undefined ? {} : { suppressEmbeds }),
122124__sessionKey: sessionKey ?? undefined,
123125__agentId: agentId ?? undefined,
124126},
@@ -142,6 +144,7 @@ export async function handleDiscordMessageAction(
142144const filename = readStringParam(params, "filename");
143145const replyTo = readStringParam(params, "replyTo");
144146const silent = readBooleanParam(params, "silent") === true;
147+const suppressEmbeds = readBooleanParam(params, "suppressEmbeds");
145148const sessionKey = readStringParam(params, "__sessionKey");
146149const agentId = readStringParam(params, "__agentId");
147150return await handleDiscordAction(
@@ -154,6 +157,7 @@ export async function handleDiscordMessageAction(
154157filename: filename ?? undefined,
155158replyTo: replyTo ?? undefined,
156159 silent,
160+ ...(suppressEmbeds === undefined ? {} : { suppressEmbeds }),
157161__sessionKey: sessionKey ?? undefined,
158162__agentId: agentId ?? undefined,
159163},
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。