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
This commit is contained in:
nyanjou
2026-02-03 14:28:39 +01:00
committed by Shadow
parent 77df8b1104
commit 385eed14f6
2 changed files with 4 additions and 0 deletions

View File

@@ -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,
);