module Slack::Web::Api::Endpoints::Channels
def channels_archive(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/channels/channels.archive.json -
See: https://api.slack.com/methods/channels.archive -
Options Hash:
(**options)
-
:channel
(channel
) --
def channels_archive(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('channels.archive', options) end