Module: Slack::Web::Api::Mixins::Channels
Instance Method Summary collapse
-
#channels_id(options = {}) ⇒ Object
This method returns a channel ID given a channel name.
Instance Method Details
#channels_id(options = {}) ⇒ Object
This method returns a channel ID given a channel name.
14 15 16 17 18 19 20 21 |
# File 'lib/slack/web/api/mixins/channels.id.rb', line 14 def channels_id( = {}) name = [:channel] throw ArgumentError.new('Required arguments :channel missing') if name.nil? id_for(:channel, name, '#', :channels, 'channel_not_found') do channels_list end end |