Sha256: f1bc0c2ef7a11d3ba33598d39c8ad0392369e7c4e27aaef8c3a3382ca9e56f65
Contents?: true
Size: 695 Bytes
Versions: 3
Compression:
Stored size: 695 Bytes
Contents
# frozen_string_literal: true require_relative 'ids.id' module Slack module Web module Api module Mixins module Channels include Ids # # This method returns a channel ID given a channel name. # # @option options [channel] :channel # Channel to get ID for, prefixed with #. def channels_id(options = {}) name = options[:channel] throw ArgumentError.new('Required arguments :channel missing') if name.nil? id_for(:channel, name, '#', :channels, 'channel_not_found') do channels_list end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems