lib/slack/web/api/mixins/groups.id.rb in slack-ruby-client-0.15.0 vs lib/slack/web/api/mixins/groups.id.rb in slack-ruby-client-0.15.1
- old
+ new
@@ -14,12 +14,10 @@
# Group channel to get ID for, prefixed with #.
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
+ id_for :group, name, '#', :groups_list, :groups, 'channel_not_found'
end
end
end
end
end