Sha256: 41386d76001343ff35a0a75fc4a98a05e9df2b2a116623602b4057abd020156e
Contents?: true
Size: 665 Bytes
Versions: 14
Compression:
Stored size: 665 Bytes
Contents
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
14 entries across 14 versions & 1 rubygems