class

SlackCry::Msg

Inherits Reference < Object

Constants

DEFAULT_HTTP_POST = ->(url : String, headers : HTTP::Headers, body : String) : HTTP::Client::Response do HTTP::Client.post(url, headers: headers, body: body) end

Class methods

send_by_id(channel_id : String, text : String, http_post : HttpPostProc = DEFAULT_HTTP_POST) : HTTP::Client::Response

Public: Send directly using channel ID

Source
send_by_name(channel_name : String, text : String, http_post : HttpPostProc = DEFAULT_HTTP_POST) : HTTP::Client::Response

Public: Send using a configured channel name

Source

Nested types