module Slack::Web::Api::Endpoints::Conversations
def conversations_setPurpose(options = {})
- See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/conversations/conversations.setPurpose.json -
See: https://api.slack.com/methods/conversations.setPurpose -
Options Hash:
(**options)
-
:purpose
(Object
) -- -
:channel
(channel
) --
def conversations_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('conversations.setPurpose', options) end