module Slack::Web::Api::Endpoints::Channels

Public Instance Methods

channels_delete(options = {}) click to toggle source

Delete a channel (undocumented)

@option options [channel] :channel

Channel to delete.

@see github.com/slack-ruby/slack-api-ref/blob/master/methods/undocumented/channels/channels.delete.json

# File lib/slack/web/api/endpoints/channels.rb, line 15
def channels_delete(options = {})
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
  options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
  logger.warn('The channels.delete method is undocumented.')
  post('channels.delete', options)
end