class

Ark::Slack::Client

Inherits Ark::Slack::SlackAPI < Reference < Object

Constants

API_BASE = "https://slack.com/api"
DEFAULT_RETRY = 1.seconds
MAX_RETRIES = 3
RATE_LIMIT_CODE = 429

Constructors

new(bot_token : String, transport : HTTPTransport = HTTPTransport.new)
Source

Instance methods

add_reaction(channel : String, timestamp : String, emoji : String) : Nil
Source
auth_test
Source
download_file(url : String) : Bytes | Nil
Source
get_thread_replies(channel : String, ts : String, limit : Int32) : Array(JSON::Any)
Source
get_user_info(user_id : String) : UserInfo
Source
post_blocks(channel : String, blocks : Array(JSON::Any), fallback_text : String, thread_ts : String | Nil = nil) : Nil
Source
post_message(channel : String, text : String, thread_ts : String | Nil = nil) : Nil
Source
upload_file(channel : String, thread_ts : String, name : String, data : Bytes) : Nil
Source