module Slack::Web::Api::Mixins::Groups

Public Instance Methods

groups_id(options = {}) click to toggle source

This method returns a group ID given a group name.

@option options [channel] :channel

Group channel to get ID for, prefixed with #.
# File lib/slack/web/api/mixins/groups.id.rb, line 14
def groups_id(options = {})
  name = options[:channel]
  throw ArgumentError.new('Required arguments :channel missing') if name.nil?

  id_for(:group, name, '#', :groups, 'channel_not_found') do
    groups_list
  end
end