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

def pins_add(options = {})

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

Options Hash: (**options)
  • :timestamp (string) --
  • :quip_component_id (string) --
  • :channel (channel) --
def pins_add(options = {})
  raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
  options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
  post('pins.add', options)
end

def pins_list(options = {})

Other tags:
    See: https://github.com/slack-ruby/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 = {})
  raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
  options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
  post('pins.list', options)
end

def pins_remove(options = {})

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

Options Hash: (**options)
  • :timestamp (string) --
  • :channel (channel) --
def pins_remove(options = {})
  raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
  options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
  post('pins.remove', options)
end