Module: Slack::Endpoint::Mpim
- Included in:
- Slack::Endpoint
- Defined in:
- lib/slack/endpoint/mpim.rb
Instance Method Summary collapse
-
#mpim_close(options = {}) ⇒ Object
Closes a multiparty direct message channel.
-
#mpim_history(options = {}) ⇒ Object
Fetches history of messages and events from a multiparty direct message.
-
#mpim_list(options = {}) ⇒ Object
Lists multiparty direct message channels for the calling user.
-
#mpim_mark(options = {}) ⇒ Object
Sets the read cursor in a multiparty direct message channel.
-
#mpim_open(options = {}) ⇒ Object
This method opens a multiparty direct message.
-
#mpim_replies(options = {}) ⇒ Object
Retrieve a thread of messages posted to a direct message conversation from a multiparty direct message.
Instance Method Details
#mpim_close(options = {}) ⇒ Object
Closes a multiparty direct message channel.
14 15 16 17 |
# File 'lib/slack/endpoint/mpim.rb', line 14 def mpim_close(={}) throw ArgumentError.new("Required arguments :channel missing") if [:channel].nil? post("mpim.close", ) end |
#mpim_history(options = {}) ⇒ Object
Fetches history of messages and events from a multiparty direct message.
37 38 39 40 |
# File 'lib/slack/endpoint/mpim.rb', line 37 def mpim_history(={}) throw ArgumentError.new("Required arguments :channel missing") if [:channel].nil? post("mpim.history", ) end |
#mpim_list(options = {}) ⇒ Object
Lists multiparty direct message channels for the calling user.
48 49 50 |
# File 'lib/slack/endpoint/mpim.rb', line 48 def mpim_list(={}) post("mpim.list", ) end |
#mpim_mark(options = {}) ⇒ Object
Sets the read cursor in a multiparty direct message channel.
62 63 64 65 66 |
# File 'lib/slack/endpoint/mpim.rb', line 62 def mpim_mark(={}) throw ArgumentError.new("Required arguments :channel missing") if [:channel].nil? throw ArgumentError.new("Required arguments :ts missing") if [:ts].nil? post("mpim.mark", ) end |
#mpim_open(options = {}) ⇒ Object
This method opens a multiparty direct message.
76 77 78 79 |
# File 'lib/slack/endpoint/mpim.rb', line 76 def mpim_open(={}) throw ArgumentError.new("Required arguments :users missing") if [:users].nil? post("mpim.open", ) end |
#mpim_replies(options = {}) ⇒ Object
Retrieve a thread of messages posted to a direct message conversation from a multiparty direct message.
91 92 93 94 95 |
# File 'lib/slack/endpoint/mpim.rb', line 91 def mpim_replies(={}) throw ArgumentError.new("Required arguments :channel missing") if [:channel].nil? throw ArgumentError.new("Required arguments :thread_ts missing") if [:thread_ts].nil? post("mpim.replies", ) end |