mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 17:04:32 +00:00
Slack: reject blocks plus media in send paths
This commit is contained in:
@@ -185,6 +185,9 @@ export async function handleSlackAction(
|
||||
if (!content && !mediaUrl && !blocks) {
|
||||
throw new Error("Slack sendMessage requires content, blocks, or mediaUrl.");
|
||||
}
|
||||
if (mediaUrl && blocks) {
|
||||
throw new Error("Slack sendMessage does not support blocks with mediaUrl.");
|
||||
}
|
||||
const threadTs = resolveThreadTsFromContext(
|
||||
readStringParam(params, "threadTs"),
|
||||
to,
|
||||
|
||||
Reference in New Issue
Block a user