module Slack::Web::Api::Endpoints::Groups
def groups_kick(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.kick.json -
See: https://api.slack.com/methods/groups.kick -
Options Hash:
(**options)
-
:user
(user
) -- -
:channel
(group
) --
def groups_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: groups_id(options)['group']['id']) if options[:channel] options = options.merge(user: users_id(options)['user']['id']) if options[:user] post('groups.kick', options) end