Sha256: b872ddd316127cd428ab04e606439b701bd58bac7dc6de2f6e9fb76d88cc851d
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 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, '#', :channels, 'channel_not_found') do conversations_list end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-0.15.0 | lib/slack/web/api/mixins/conversations.id.rb |