Method: Slack::Web::Api::Endpoints::Pins#pins_add
- Defined in:
- lib/slack/web/api/endpoints/pins.rb
#pins_add(options = {}) ⇒ Object
Pins an item to a channel.
18 19 20 21 22 |
# File 'lib/slack/web/api/endpoints/pins.rb', line 18 def pins_add( = {}) raise ArgumentError, 'Required arguments :channel missing' if [:channel].nil? = .merge(channel: conversations_id()['channel']['id']) if [:channel] post('pins.add', ) end |