module Slack::Web::Api::Endpoints::Groups
def groups_rename(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.rename.json -
See: https://api.slack.com/methods/groups.rename -
Options Hash:
(**options)
-
:name
(Object
) -- -
:channel
(group
) --
def groups_rename(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :name missing') if options[:name].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.rename', options) end