module Slack::Web::Api::Endpoints::Pins

def pins_add(options = {})

Other tags:
    See: https://github.com/dblock/slack-api-ref/blob/master/methods/pins/pins.add.json -
    See: https://api.slack.com/methods/pins.add -

Options Hash: (**options)
  • :timestamp (Object) --
  • :file_comment (Object) --
  • :file (file) --
  • :channel (channel) --
def pins_add(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('pins.add', options)
end

def pins_list(options = {})

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

Options Hash: (**options)
  • :channel (channel) --
def pins_list(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('pins.list', options)
end

def pins_remove(options = {})

Other tags:
    See: https://github.com/dblock/slack-api-ref/blob/master/methods/pins/pins.remove.json -
    See: https://api.slack.com/methods/pins.remove -

Options Hash: (**options)
  • :timestamp (Object) --
  • :file_comment (Object) --
  • :file (file) --
  • :channel (channel) --
def pins_remove(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('pins.remove', options)
end