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