Skip to content

Commit

Permalink
Merge pull request #226 from juanazam/add_missing_blocks_arg_to_chat_…
Browse files Browse the repository at this point in the history
…calls

Add missing blocks optional argument to chat endpoints
  • Loading branch information
acconrad committed Jun 9, 2020
2 parents a288ef6 + 68ae419 commit 44851af
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def application do
end

def deps do
[{:slack, "~> 0.23.4"}]
[{:slack, "~> 0.23.5"}]
end
```

Expand Down
7 changes: 6 additions & 1 deletion lib/slack/web/docs/chat.postEphemeral.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"example" : "Hello world",
"desc" : "Text of the message to send. See below for an explanation of [formatting](#formatting)."
},
"user": {
"user": {
"type" : "user",
"required" : true,
"desc" : "`id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument."
Expand All @@ -33,6 +33,11 @@
"required" : false,
"example" : "true",
"desc" : "Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See [authorship](#authorship) below."
},
"blocks": {
"required" : false,
"example" : "[{\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"Hello world\"}}]",
"desc" : "A JSON-based array of structured blocks, presented as a URL-encoded string"
}
},

Expand Down
5 changes: 5 additions & 0 deletions lib/slack/web/docs/chat.postMessage.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
"example" : "[{\"pretext\": \"pre-hello\", \"text\": \"text-world\"}]",
"desc" : "Structured message attachments."
},
"blocks": {
"required" : false,
"example" : "[{\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"Hello world\"}}]",
"desc" : "A JSON-based array of structured blocks, presented as a URL-encoded string"
},
"unfurl_links": {
"example" : "true",
"desc" : "Pass true to enable unfurling of primarily text-based content."
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Slack.Mixfile do
def project do
[
app: :slack,
version: "0.23.4",
version: "0.23.5",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
name: "Slack",
Expand Down

0 comments on commit 44851af

Please sign in to comment.