Sha256: f259e2bcd4754fe5de728bb3270b0d0f097d049454ca649b1c05130088024992
Contents?: true
Size: 687 Bytes
Versions: 3
Compression:
Stored size: 687 Bytes
Contents
# frozen_string_literal: true require_relative 'ids.id' module Slack module Web module Api module Mixins module Groups include Ids # # This method returns a group ID given a group name. # # @option options [channel] :channel # 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 end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems