Module: Slack::Web::Api::Mixins::Groups
Instance Method Summary collapse
-
#groups_id(options = {}) ⇒ Object
This method returns a group ID given a group name.
Instance Method Details
#groups_id(options = {}) ⇒ Object
This method returns a group ID given a group name.
15 16 17 18 19 20 |
# File 'lib/slack/web/api/mixins/groups.id.rb', line 15 def groups_id( = {}) name = [:channel] throw ArgumentError.new('Required arguments :channel missing') if name.nil? id_for :group, name, '#', :groups_list, :groups, 'channel_not_found' end |