module Slack::Web::Api::Endpoints::Mpim
def mpim_close(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/mpim/mpim.close.json -
See: https://api.slack.com/methods/mpim.close -
Options Hash:
(**options)
-
:channel
(channel
) --
def mpim_close(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('mpim.close', options) end
def mpim_history(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/mpim/mpim.history.json -
See: https://api.slack.com/methods/mpim.history -
Options Hash:
(**options)
-
:unreads
(Object
) -- -
:oldest
(timestamp
) -- -
:latest
(timestamp
) -- -
:inclusive
(Object
) -- -
:channel
(channel
) --
def mpim_history(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('mpim.history', options) end
def mpim_list(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/mpim/mpim.list.json -
See: https://api.slack.com/methods/mpim.list -
def mpim_list(options = {}) post('mpim.list', options) end
def mpim_mark(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/mpim/mpim.mark.json -
See: https://api.slack.com/methods/mpim.mark -
Options Hash:
(**options)
-
:ts
(timestamp
) -- -
:channel
(channel
) --
def mpim_mark(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :ts missing') if options[:ts].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('mpim.mark', options) end
def mpim_open(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/mpim/mpim.open.json -
See: https://api.slack.com/methods/mpim.open -
Options Hash:
(**options)
-
:users
(Object
) --
def mpim_open(options = {}) throw ArgumentError.new('Required arguments :users missing') if options[:users].nil? post('mpim.open', options) end
def mpim_replies(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/mpim/mpim.replies.json -
See: https://api.slack.com/methods/mpim.replies -
Options Hash:
(**options)
-
:thread_ts
(Object
) -- -
:channel
(channel
) --
def mpim_replies(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :thread_ts missing') if options[:thread_ts].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('mpim.replies', options) end