struct Slack::Api::ChatPostMessage
- Slack::Api::ChatPostMessage
- Slack::Api::Base
- Struct
- Value
- Object
Defined in:
slack/api/endpoints/chat_post_message.crConstant Summary
-
ASSIGNED_TYPES =
[token : String, attachments : Array(EventData::Attachment) | ::Nil, blocks : Array(Slack::UI::Block) | ::Nil, channel : String, text : String | ::Nil, icon_emoji : String | ::Nil, icon_url : String | ::Nil, link_names : Bool | ::Nil, mrkdwn : Bool | ::Nil, parse : String | ::Nil = "none", reply_broadcast : Bool | ::Nil, thread_ts : String | ::Nil, unfurl_links : Bool | ::Nil, unfurl_media : Bool | ::Nil, username : String | ::Nil] of TypeDeclaration
Constructors
- .new(token : String, channel : String, attachments : Array(EventData::Attachment) | Nil = nil, blocks : Array(Slack::UI::Block) | Nil = nil, text : String | Nil = nil, icon_emoji : String | Nil = nil, icon_url : String | Nil = nil, link_names : Bool | Nil = nil, mrkdwn : Bool | Nil = nil, parse : String | Nil = "none", reply_broadcast : Bool | Nil = nil, thread_ts : String | Nil = nil, unfurl_links : Bool | Nil = nil, unfurl_media : Bool | Nil = nil, username : String | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #after_initialize
- #attachments : Array(EventData::Attachment) | Nil
- #attachments=(attachments : Array(EventData::Attachment) | Nil)
- #blocks : Array(Slack::UI::Block) | Nil
- #blocks=(blocks : Array(Slack::UI::Block) | Nil)
- #call : Slack::Models::Chat::PostMessage
- #channel : String
- #channel=(channel : String)
- #content_type : ContentTypes
- #icon_emoji : String | Nil
- #icon_emoji=(icon_emoji : String | Nil)
- #icon_url : String | Nil
- #icon_url=(icon_url : String | Nil)
- #link_names : Bool | Nil
- #link_names=(link_names : Bool | Nil)
- #mrkdwn : Bool | Nil
- #mrkdwn=(mrkdwn : Bool | Nil)
- #parse : String | Nil
- #parse=(parse : String | Nil)
- #reply_broadcast : Bool | Nil
- #reply_broadcast=(reply_broadcast : Bool | Nil)
- #request_url : String
- #result : HTTP::Client::Response
- #text : String | Nil
- #text=(text : String | Nil)
- #thread_ts : String | Nil
- #thread_ts=(thread_ts : String | Nil)
- #unfurl_links : Bool | Nil
- #unfurl_links=(unfurl_links : Bool | Nil)
- #unfurl_media : Bool | Nil
- #unfurl_media=(unfurl_media : Bool | Nil)
- #username : String | Nil
- #username=(username : String | Nil)
Instance methods inherited from struct Slack::Api::Base
call : Slack::Model
call,
content_type : ContentTypes
content_type,
headers
headers,
request_url : String
request_url,
result : HTTP::Client::Response
result,
token : String
token,
token=(token : String)
token=
Constructor methods inherited from struct Slack::Api::Base
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(token : String, channel : String, attachments : Array(EventData::Attachment) | Nil = nil, blocks : Array(Slack::UI::Block) | Nil = nil, text : String | Nil = nil, icon_emoji : String | Nil = nil, icon_url : String | Nil = nil, link_names : Bool | Nil = nil, mrkdwn : Bool | Nil = nil, parse : String | Nil = "none", reply_broadcast : Bool | Nil = nil, thread_ts : String | Nil = nil, unfurl_links : Bool | Nil = nil, unfurl_media : Bool | Nil = nil, username : String | Nil = nil)
#
Class Method Detail
def self.post_blocks(blocks : Enumerable, channel : String, token : String, thread_ts : String | Nil = nil)
#