From d31f9a883867df592751c6a252463e9daea69bed Mon Sep 17 00:00:00 2001 From: Brendan Abbott Date: Sun, 30 Nov 2025 20:35:47 +1000 Subject: [PATCH 1/2] Add patch for text OR markdown text to chat.* methods --- methods/_patches/chat/chat.postEphemeral.json | 15 ++++++++++++--- methods/_patches/chat/chat.postMessage.json | 15 ++++++++++++--- methods/_patches/chat/chat.scheduleMessage.json | 15 ++++++++++++--- methods/_patches/chat/chat.update.json | 15 ++++++++++++--- methods/chat/chat.postEphemeral.json | 13 +++++++++++-- methods/chat/chat.postMessage.json | 13 +++++++++++-- methods/chat/chat.scheduleMessage.json | 13 +++++++++++-- methods/chat/chat.update.json | 13 +++++++++++-- 8 files changed, 92 insertions(+), 20 deletions(-) diff --git a/methods/_patches/chat/chat.postEphemeral.json b/methods/_patches/chat/chat.postEphemeral.json index 083025d3..ca23950e 100644 --- a/methods/_patches/chat/chat.postEphemeral.json +++ b/methods/_patches/chat/chat.postEphemeral.json @@ -4,10 +4,19 @@ "args": [ "attachments", "blocks", - "text" + "text", + "markdown_text" ], - "desc": "One of these arguments in addition to text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition to text (unless markdown_text is provided) is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false + }, + { + "args": [ + "text", + "markdown_text" + ], + "desc": "Use either text or markdown_text, but not both.", + "mutually_exclusive": true } ] -} \ No newline at end of file +} diff --git a/methods/_patches/chat/chat.postMessage.json b/methods/_patches/chat/chat.postMessage.json index 083025d3..ca23950e 100644 --- a/methods/_patches/chat/chat.postMessage.json +++ b/methods/_patches/chat/chat.postMessage.json @@ -4,10 +4,19 @@ "args": [ "attachments", "blocks", - "text" + "text", + "markdown_text" ], - "desc": "One of these arguments in addition to text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition to text (unless markdown_text is provided) is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false + }, + { + "args": [ + "text", + "markdown_text" + ], + "desc": "Use either text or markdown_text, but not both.", + "mutually_exclusive": true } ] -} \ No newline at end of file +} diff --git a/methods/_patches/chat/chat.scheduleMessage.json b/methods/_patches/chat/chat.scheduleMessage.json index 083025d3..2dd0a883 100644 --- a/methods/_patches/chat/chat.scheduleMessage.json +++ b/methods/_patches/chat/chat.scheduleMessage.json @@ -4,10 +4,19 @@ "args": [ "attachments", "blocks", - "text" + "text", + "markdown_text" ], - "desc": "One of these arguments in addition to text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition to text is required (unless markdown_text is provided) to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false + }, + { + "args": [ + "text", + "markdown_text" + ], + "desc": "Use either text or markdown_text, but not both.", + "mutually_exclusive": true } ] -} \ No newline at end of file +} diff --git a/methods/_patches/chat/chat.update.json b/methods/_patches/chat/chat.update.json index 083025d3..48a2dea4 100644 --- a/methods/_patches/chat/chat.update.json +++ b/methods/_patches/chat/chat.update.json @@ -4,10 +4,19 @@ "args": [ "attachments", "blocks", - "text" + "text", + "markdown_text" ], - "desc": "One of these arguments in addition to text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition to text (unless markdown_text is provided) is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false + }, + { + "args": [ + "text", + "markdown_text" + ], + "desc": "Use either text or markdown_text, but not both.", + "mutually_exclusive": true } ] -} \ No newline at end of file +} diff --git a/methods/chat/chat.postEphemeral.json b/methods/chat/chat.postEphemeral.json index 83acf31d..d3b7fb26 100644 --- a/methods/chat/chat.postEphemeral.json +++ b/methods/chat/chat.postEphemeral.json @@ -139,10 +139,19 @@ "args": [ "attachments", "blocks", - "text" + "text", + "markdown_text" ], - "desc": "One of these arguments in addition to text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition to text (unless markdown_text is provided) is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false + }, + { + "args": [ + "text", + "markdown_text" + ], + "desc": "Use either text or markdown_text, but not both.", + "mutually_exclusive": true } ] } \ No newline at end of file diff --git a/methods/chat/chat.postMessage.json b/methods/chat/chat.postMessage.json index 66f23db9..1e095e33 100644 --- a/methods/chat/chat.postMessage.json +++ b/methods/chat/chat.postMessage.json @@ -194,10 +194,19 @@ "args": [ "attachments", "blocks", - "text" + "text", + "markdown_text" ], - "desc": "One of these arguments in addition to text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition to text (unless markdown_text is provided) is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false + }, + { + "args": [ + "text", + "markdown_text" + ], + "desc": "Use either text or markdown_text, but not both.", + "mutually_exclusive": true } ] } \ No newline at end of file diff --git a/methods/chat/chat.scheduleMessage.json b/methods/chat/chat.scheduleMessage.json index dfcf8eb5..51ed2a4c 100644 --- a/methods/chat/chat.scheduleMessage.json +++ b/methods/chat/chat.scheduleMessage.json @@ -156,10 +156,19 @@ "args": [ "attachments", "blocks", - "text" + "text", + "markdown_text" ], - "desc": "One of these arguments in addition to text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition to text is required (unless markdown_text is provided) to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false + }, + { + "args": [ + "text", + "markdown_text" + ], + "desc": "Use either text or markdown_text, but not both.", + "mutually_exclusive": true } ] } \ No newline at end of file diff --git a/methods/chat/chat.update.json b/methods/chat/chat.update.json index cbd32fe5..0ab41bbc 100644 --- a/methods/chat/chat.update.json +++ b/methods/chat/chat.update.json @@ -164,10 +164,19 @@ "args": [ "attachments", "blocks", - "text" + "text", + "markdown_text" ], - "desc": "One of these arguments in addition to text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition to text (unless markdown_text is provided) is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false + }, + { + "args": [ + "text", + "markdown_text" + ], + "desc": "Use either text or markdown_text, but not both.", + "mutually_exclusive": true } ] } \ No newline at end of file From a3d0269f7e231e829c031662384287b1d68c9320 Mon Sep 17 00:00:00 2001 From: Brendan Abbott Date: Tue, 2 Dec 2025 13:58:03 +1000 Subject: [PATCH 2/2] Adjust description wording for clarity --- methods/_patches/chat/chat.postEphemeral.json | 2 +- methods/_patches/chat/chat.postMessage.json | 2 +- methods/_patches/chat/chat.scheduleMessage.json | 2 +- methods/_patches/chat/chat.update.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/methods/_patches/chat/chat.postEphemeral.json b/methods/_patches/chat/chat.postEphemeral.json index ca23950e..61161136 100644 --- a/methods/_patches/chat/chat.postEphemeral.json +++ b/methods/_patches/chat/chat.postEphemeral.json @@ -7,7 +7,7 @@ "text", "markdown_text" ], - "desc": "One of these arguments in addition to text (unless markdown_text is provided) is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition either text or markdown_text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false }, { diff --git a/methods/_patches/chat/chat.postMessage.json b/methods/_patches/chat/chat.postMessage.json index ca23950e..61161136 100644 --- a/methods/_patches/chat/chat.postMessage.json +++ b/methods/_patches/chat/chat.postMessage.json @@ -7,7 +7,7 @@ "text", "markdown_text" ], - "desc": "One of these arguments in addition to text (unless markdown_text is provided) is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition either text or markdown_text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false }, { diff --git a/methods/_patches/chat/chat.scheduleMessage.json b/methods/_patches/chat/chat.scheduleMessage.json index 2dd0a883..61161136 100644 --- a/methods/_patches/chat/chat.scheduleMessage.json +++ b/methods/_patches/chat/chat.scheduleMessage.json @@ -7,7 +7,7 @@ "text", "markdown_text" ], - "desc": "One of these arguments in addition to text is required (unless markdown_text is provided) to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition either text or markdown_text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false }, { diff --git a/methods/_patches/chat/chat.update.json b/methods/_patches/chat/chat.update.json index 48a2dea4..61161136 100644 --- a/methods/_patches/chat/chat.update.json +++ b/methods/_patches/chat/chat.update.json @@ -7,7 +7,7 @@ "text", "markdown_text" ], - "desc": "One of these arguments in addition to text (unless markdown_text is provided) is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", + "desc": "One of these arguments in addition either text or markdown_text is required to describe the content of the message. When attachments or blocks are included, text will be used as fallback text for notifications only.", "mutually_exclusive": false }, {