module Slack::Web::Api::Endpoints::Pins
def pins_add(options = {})
- 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