Method: SearchOnSlack#conversation_type
- Defined in:
- lib/modules/search_slack.rb
#conversation_type(channel = @channel_id) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/modules/search_slack.rb', line 38 def conversation_type(channel = @channel_id) @channel_id = channel if @channel_id.nil? result = conversation_info if result == false print 'Check if IM' @channel_id = get_user_id conversation_info == false ? false : verify_type else verify_type end rescue Slack::Web::Api::Errors::SlackError => e print e. false end |