mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 22:07:26 +00:00
Slack: reject blocks plus media in send paths
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user