lib/waylon/slack/channel.rb
# Posts a message to a channel
# @param text [String] Message text or fallback text for blocks
# @param attachments [Array<Hash>] Old-style message attachments
# @param blocks [Array<Hash>] New-style block method of sending complex messages
# @param thread [Integer] The message timestamp for the thread id
# @return [void]
Posts a message to a channel
Posts a message to a channel
def post(text: nil, attachments: nil, blocks: nil, thread: nil)
        options = { channel: id }
        options[:text] = text if text
        options[:attachments] = attachments if attachments
        options[:blocks] = blocks if blocks
        options[:thread_ts] = thread if thread
        sense.client.chat_postMessage(options)
      end
def post ( text : nil , attachments : nil , blocks : nil , thread : nil ) options = { channel : id } options [ :text ] = text if text options [ :attachments ] = attachments if attachments options [ :blocks ] = blocks if blocks options [ :thread_ts ] = thread if thread sense . client . chat_postMessage ( options ) end
Posts a message to a channel
Posts a message to a channel
None
void
text
Message text or fallback text for blocks
Message text or fallback text for blocks
attachments
Old-style message attachments
Old - style message attachments
blocks
New-style block method of sending complex messages
New - style block method of sending complex messages
thread
The message timestamp for the thread id
The message timestamp for the thread id