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

def channels_kick(options = {})

Other tags:
    See: https://github.com/dblock/slack-api-ref/blob/master/methods/channels/channels.kick.json -
    See: https://api.slack.com/methods/channels.kick -

Options Hash: (**options)
  • :user (user) --
  • :channel (channel) --
def channels_kick(options = {})
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
  throw ArgumentError.new('Required arguments :user missing') if options[:user].nil?
  options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel]
  options = options.merge(user: users_id(options)['user']['id']) if options[:user]
  post('channels.kick', options)
end