module Slack::Web::Api::Mixins::Conversations
Public Instance Methods
conversations_id(options = {})
click to toggle source
This method returns a channel ID given a channel name.
@option options [channel] :channel
Channel to get ID for, prefixed with #.
# File lib/slack/web/api/mixins/conversations.id.rb, line 15 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