module Slack::Web::Api::Endpoints::Channels
def channels_setPurpose(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/channels/channels.setPurpose.json -
See: https://api.slack.com/methods/channels.setPurpose -
Options Hash:
(**options)
-
:purpose
(Object
) -- -
:channel
(channel
) --
def channels_setPurpose(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :purpose missing') if options[:purpose].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('channels.setPurpose', options) end