slack_command v0.1.0 SlackCommand.Response

Defines a response type for slack.

Link to this section Summary

Link to this section Types

Link to this type attachment()
attachment() :: %{color: color, title: String.t, text: String.t, pretext: String.t}
Link to this type attachments()
attachments() :: [attachment]
Link to this type color()
color() :: String.t
Link to this type response_type()
response_type() :: String.t
Link to this type t()
t() :: %SlackCommand.Response{attachments: attachments, color: color, response_type: response_type, text: text}
Link to this type text()
text() :: String.t

Link to this section Functions

Link to this function add_attachment(response, attachment)
add_attachment(t, attachment) :: t
Link to this function build(attrs \\ %{})
build(String.t) :: t
build(map) :: t
Link to this function set_color(response, color)
set_color(t, color) :: t
Link to this function set_ephemeral(response)
set_ephemeral(t) :: t