Module: Slack::RealTime::Api::Message
- Included in:
- Client
- Defined in:
- lib/slack/real_time/api/message.rb
Instance Method Summary collapse
-
#message(options = {}) ⇒ Object
Sends a message to a channel.
Instance Method Details
#message(options = {}) ⇒ Object
Sends a message to a channel.
12 13 14 15 16 |
# File 'lib/slack/real_time/api/message.rb', line 12 def ( = {}) throw ArgumentError.new('Required arguments :channel missing') if [:channel].nil? throw ArgumentError.new('Required arguments :text missing') if [:text].nil? send_json({ type: 'message', id: next_id }.merge()) end |