Skip to content

Commit d31f9a8

Browse files
committed
Add patch for text OR markdown text to chat.* methods
1 parent f6f4383 commit d31f9a8

File tree

8 files changed

+92
-20
lines changed

8 files changed

+92
-20
lines changed

methods/_patches/chat/chat.postEphemeral.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@
44
"args": [
55
"attachments",
66
"blocks",
7-
"text"
7+
"text",
8+
"markdown_text"
89
],
9-
"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.",
10+
"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.",
1011
"mutually_exclusive": false
12+
},
13+
{
14+
"args": [
15+
"text",
16+
"markdown_text"
17+
],
18+
"desc": "Use either text or markdown_text, but not both.",
19+
"mutually_exclusive": true
1120
}
1221
]
13-
}
22+
}

methods/_patches/chat/chat.postMessage.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@
44
"args": [
55
"attachments",
66
"blocks",
7-
"text"
7+
"text",
8+
"markdown_text"
89
],
9-
"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.",
10+
"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.",
1011
"mutually_exclusive": false
12+
},
13+
{
14+
"args": [
15+
"text",
16+
"markdown_text"
17+
],
18+
"desc": "Use either text or markdown_text, but not both.",
19+
"mutually_exclusive": true
1120
}
1221
]
13-
}
22+
}

methods/_patches/chat/chat.scheduleMessage.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@
44
"args": [
55
"attachments",
66
"blocks",
7-
"text"
7+
"text",
8+
"markdown_text"
89
],
9-
"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.",
10+
"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.",
1011
"mutually_exclusive": false
12+
},
13+
{
14+
"args": [
15+
"text",
16+
"markdown_text"
17+
],
18+
"desc": "Use either text or markdown_text, but not both.",
19+
"mutually_exclusive": true
1120
}
1221
]
13-
}
22+
}

methods/_patches/chat/chat.update.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@
44
"args": [
55
"attachments",
66
"blocks",
7-
"text"
7+
"text",
8+
"markdown_text"
89
],
9-
"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.",
10+
"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.",
1011
"mutually_exclusive": false
12+
},
13+
{
14+
"args": [
15+
"text",
16+
"markdown_text"
17+
],
18+
"desc": "Use either text or markdown_text, but not both.",
19+
"mutually_exclusive": true
1120
}
1221
]
13-
}
22+
}

methods/chat/chat.postEphemeral.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,19 @@
139139
"args": [
140140
"attachments",
141141
"blocks",
142-
"text"
142+
"text",
143+
"markdown_text"
143144
],
144-
"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.",
145+
"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.",
145146
"mutually_exclusive": false
147+
},
148+
{
149+
"args": [
150+
"text",
151+
"markdown_text"
152+
],
153+
"desc": "Use either text or markdown_text, but not both.",
154+
"mutually_exclusive": true
146155
}
147156
]
148157
}

methods/chat/chat.postMessage.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,19 @@
194194
"args": [
195195
"attachments",
196196
"blocks",
197-
"text"
197+
"text",
198+
"markdown_text"
198199
],
199-
"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.",
200+
"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.",
200201
"mutually_exclusive": false
202+
},
203+
{
204+
"args": [
205+
"text",
206+
"markdown_text"
207+
],
208+
"desc": "Use either text or markdown_text, but not both.",
209+
"mutually_exclusive": true
201210
}
202211
]
203212
}

methods/chat/chat.scheduleMessage.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,19 @@
156156
"args": [
157157
"attachments",
158158
"blocks",
159-
"text"
159+
"text",
160+
"markdown_text"
160161
],
161-
"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.",
162+
"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.",
162163
"mutually_exclusive": false
164+
},
165+
{
166+
"args": [
167+
"text",
168+
"markdown_text"
169+
],
170+
"desc": "Use either text or markdown_text, but not both.",
171+
"mutually_exclusive": true
163172
}
164173
]
165174
}

methods/chat/chat.update.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,19 @@
164164
"args": [
165165
"attachments",
166166
"blocks",
167-
"text"
167+
"text",
168+
"markdown_text"
168169
],
169-
"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.",
170+
"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.",
170171
"mutually_exclusive": false
172+
},
173+
{
174+
"args": [
175+
"text",
176+
"markdown_text"
177+
],
178+
"desc": "Use either text or markdown_text, but not both.",
179+
"mutually_exclusive": true
171180
}
172181
]
173182
}

0 commit comments

Comments
 (0)