struct Slack::Api::ChatPostMessage

Defined in:

slack/api/endpoints/chat_post_message.cr

Constant 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

Class Method Summary

Instance Method Summary

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) #

def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.post_blocks(blocks : Enumerable, channel : String, token : String, thread_ts : String | Nil = nil) #

[View source]

Instance Method Detail

def after_initialize #

[View source]
def attachments : Array(EventData::Attachment) | Nil #

def attachments=(attachments : Array(EventData::Attachment) | Nil) #

def blocks : Array(Slack::UI::Block) | Nil #

def blocks=(blocks : Array(Slack::UI::Block) | Nil) #


[View source]
def channel : String #

def channel=(channel : String) #

def content_type : ContentTypes #

[View source]
def icon_emoji : String | Nil #

def icon_emoji=(icon_emoji : String | Nil) #

def icon_url : String | Nil #

def icon_url=(icon_url : String | Nil) #

def link_names : Bool | Nil #

def link_names=(link_names : Bool | Nil) #

def mrkdwn : Bool | Nil #

def mrkdwn=(mrkdwn : Bool | Nil) #

def parse : String | Nil #

def parse=(parse : String | Nil) #

def reply_broadcast : Bool | Nil #

def reply_broadcast=(reply_broadcast : Bool | Nil) #

def request_url : String #

[View source]
def result : HTTP::Client::Response #

[View source]
def text : String | Nil #

def text=(text : String | Nil) #

def thread_ts : String | Nil #

def thread_ts=(thread_ts : String | Nil) #

def unfurl_links : Bool | Nil #

def unfurl_links=(unfurl_links : Bool | Nil) #

def unfurl_media : Bool | Nil #

def unfurl_media=(unfurl_media : Bool | Nil) #

def username : String | Nil #

def username=(username : String | Nil) #