From 385eed14f69e83ef30c1133a96d8eb6f7b02fb1c Mon Sep 17 00:00:00 2001 From: nyanjou Date: Tue, 3 Feb 2026 14:28:39 +0100 Subject: [PATCH] fix(discord): pass silent flag through plugin action handler The Discord send action was going through the plugin handler path which wasn't passing the silent flag to sendMessageDiscord. - Add silent param reading in handle-action.ts - Pass silent to handleDiscordAction - Add silent param in discord-actions-messaging.ts sendMessage case --- src/agents/tools/discord-actions-messaging.ts | 2 ++ src/channels/plugins/actions/discord/handle-action.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/agents/tools/discord-actions-messaging.ts b/src/agents/tools/discord-actions-messaging.ts index fabd3b9bd..cf50961e9 100644 --- a/src/agents/tools/discord-actions-messaging.ts +++ b/src/agents/tools/discord-actions-messaging.ts @@ -236,6 +236,7 @@ export async function handleDiscordMessagingAction( const mediaUrl = readStringParam(params, "mediaUrl"); const replyTo = readStringParam(params, "replyTo"); const asVoice = params.asVoice === true; + const silent = params.silent === true; const embeds = Array.isArray(params.embeds) && params.embeds.length > 0 ? params.embeds : undefined; @@ -266,6 +267,7 @@ export async function handleDiscordMessagingAction( mediaUrl, replyTo, embeds, + silent, }); return jsonResult({ ok: true, result }); } diff --git a/src/channels/plugins/actions/discord/handle-action.ts b/src/channels/plugins/actions/discord/handle-action.ts index 3b27e7ba7..a5797440a 100644 --- a/src/channels/plugins/actions/discord/handle-action.ts +++ b/src/channels/plugins/actions/discord/handle-action.ts @@ -46,6 +46,7 @@ export async function handleDiscordMessageAction( const replyTo = readStringParam(params, "replyTo"); const embeds = Array.isArray(params.embeds) ? params.embeds : undefined; const asVoice = params.asVoice === true; + const silent = params.silent === true; return await handleDiscordAction( { action: "sendMessage", @@ -56,6 +57,7 @@ export async function handleDiscordMessageAction( replyTo: replyTo ?? undefined, embeds, asVoice, + silent, }, cfg, );