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