module Slack::RealTime::Api::Message

def message(options = {})

Options Hash: (**options)
  • :text (Object) --
  • :channel (channel) --
def message(options = {})
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
  throw ArgumentError.new('Required arguments :text missing') if options[:text].nil?
  send_json({ type: 'message', id: next_id }.merge(options))
end