module Slack::Web::Api::Endpoints::Mpim

def mpim_close(options = {})

Other tags:
    See: https://github.com/slack-ruby/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 = {})

Other tags:
    See: https://github.com/slack-ruby/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 = {})

Other tags:
    See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/mpim/mpim.list.json -
    See: https://api.slack.com/methods/mpim.list -

Options Hash: (**options)
  • :limit (Object) --
  • :cursor (Object) --
def mpim_list(options = {})
  if block_given?
    Pagination::Cursor.new(self, :mpim_list, options).each do |page|
      yield page
    end
  else
    post('mpim.list', options)
  end
end

def mpim_mark(options = {})

Other tags:
    See: https://github.com/slack-ruby/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 = {})

Other tags:
    See: https://github.com/slack-ruby/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 = {})

Other tags:
    See: https://github.com/slack-ruby/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