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.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/slack/web/api/mixins/conversations.id.rb', line 25 def conversations_id( = {}) name = [:channel] raise ArgumentError, 'Required arguments :channel missing' if name.nil? id_for( key: :channel, name: name, prefix: '#', enum_method: :conversations_list, list_method: :channels, options: { team_id: .fetch(:team_id, nil), exclude_archived: .fetch(:id_exclude_archived, nil), limit: .fetch(:id_limit, Slack::Web.config.conversations_id_page_size), types: .fetch(:id_types, nil) }.compact ) end |