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
(string
) -- -
:channel
(channel
) --
def conversations_setPurpose(options = {}) raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil? raise ArgumentError, 'Required arguments :purpose missing' if options[:purpose].nil? options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel] post('conversations.setPurpose', options) end