Sha256: c677a557a35c6eb7314bee83030d53c1555eec961642fa6e09c75dfad1a62fc4
Contents?: true
Size: 869 Bytes
Versions: 3
Compression:
Stored size: 869 Bytes
Contents
# frozen_string_literal: true # This file was auto-generated by lib/tasks/web.rake module Slack module Web module Api module Endpoints module Channels # # Delete a channel (undocumented) # # @option options [channel] :channel # Channel to delete. # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/undocumented/channels/channels.delete.json 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 end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems