Skip to content

Commit 44851af

Browse files
authored
Merge pull request #226 from juanazam/add_missing_blocks_arg_to_chat_calls
Add missing blocks optional argument to chat endpoints
2 parents a288ef6 + 68ae419 commit 44851af

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def application do
2424
end
2525

2626
def deps do
27-
[{:slack, "~> 0.23.4"}]
27+
[{:slack, "~> 0.23.5"}]
2828
end
2929
```
3030

lib/slack/web/docs/chat.postEphemeral.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"example" : "Hello world",
1313
"desc" : "Text of the message to send. See below for an explanation of [formatting](#formatting)."
1414
},
15-
"user": {
15+
"user": {
1616
"type" : "user",
1717
"required" : true,
1818
"desc" : "`id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument."
@@ -33,6 +33,11 @@
3333
"required" : false,
3434
"example" : "true",
3535
"desc" : "Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See [authorship](#authorship) below."
36+
},
37+
"blocks": {
38+
"required" : false,
39+
"example" : "[{\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"Hello world\"}}]",
40+
"desc" : "A JSON-based array of structured blocks, presented as a URL-encoded string"
3641
}
3742
},
3843

lib/slack/web/docs/chat.postMessage.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
"example" : "[{\"pretext\": \"pre-hello\", \"text\": \"text-world\"}]",
2525
"desc" : "Structured message attachments."
2626
},
27+
"blocks": {
28+
"required" : false,
29+
"example" : "[{\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"Hello world\"}}]",
30+
"desc" : "A JSON-based array of structured blocks, presented as a URL-encoded string"
31+
},
2732
"unfurl_links": {
2833
"example" : "true",
2934
"desc" : "Pass true to enable unfurling of primarily text-based content."

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule Slack.Mixfile do
44
def project do
55
[
66
app: :slack,
7-
version: "0.23.4",
7+
version: "0.23.5",
88
elixir: "~> 1.7",
99
elixirc_paths: elixirc_paths(Mix.env()),
1010
name: "Slack",

0 commit comments

Comments
 (0)