Slack: reject blocks plus media in send paths

This commit is contained in:
Colin
2026-02-16 12:33:43 -05:00
committed by Peter Steinberger
parent 10d876e319
commit c943ffab7c
4 changed files with 41 additions and 0 deletions

View File

@@ -41,6 +41,9 @@ export async function handleSlackMessageAction(params: {
if (!content && !mediaUrl && !blocks) {
throw new Error("Slack send requires message, blocks, or media.");
}
if (mediaUrl && blocks) {
throw new Error("Slack send does not support blocks with media.");
}
const threadId = readStringParam(actionParams, "threadId");
const replyTo = readStringParam(actionParams, "replyTo");
return await invoke(