Module: Slack::Web::Api::Endpoints::Chat
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/chat.rb
Instance Method Summary collapse
-
#chat_delete(options = {}) ⇒ Object
Deletes a message.
-
#chat_postMessage(options = {}) ⇒ Object
Sends a message to a channel.
-
#chat_update(options = {}) ⇒ Object
Updates a message.
Instance Method Details
#chat_delete(options = {}) ⇒ Object
Deletes a message.
18 19 20 21 22 |
# File 'lib/slack/web/api/endpoints/chat.rb', line 18 def chat_delete( = {}) throw ArgumentError.new('Required arguments :ts missing') if [:ts].nil? throw ArgumentError.new('Required arguments :channel missing') if [:channel].nil? post('chat.delete', ) end |
#chat_postMessage(options = {}) ⇒ Object
Sends a message to a channel.
50 51 52 53 54 |
# File 'lib/slack/web/api/endpoints/chat.rb', line 50 def chat_postMessage( = {}) throw ArgumentError.new('Required arguments :channel missing') if [:channel].nil? throw ArgumentError.new('Required arguments :text missing') if [:text].nil? post('chat.postMessage', ) end |
#chat_update(options = {}) ⇒ Object
Updates a message.
68 69 70 71 72 73 |
# File 'lib/slack/web/api/endpoints/chat.rb', line 68 def chat_update( = {}) throw ArgumentError.new('Required arguments :ts missing') if [:ts].nil? throw ArgumentError.new('Required arguments :channel missing') if [:channel].nil? throw ArgumentError.new('Required arguments :text missing') if [:text].nil? post('chat.update', ) end |