lib/slack/web/api/mixins/conversations.id.rb in slack-ruby-client-1.1.0 vs lib/slack/web/api/mixins/conversations.id.rb in slack-ruby-client-2.0.0

- old
+ new

@@ -12,10 +12,10 @@ # # @option options [channel] :channel # Channel to get ID for, prefixed with #. def conversations_id(options = {}) name = options[:channel] - throw ArgumentError.new('Required arguments :channel missing') if name.nil? + raise ArgumentError, 'Required arguments :channel missing' if name.nil? id_for :channel, name, '#', :conversations_list, :channels, 'channel_not_found' end end end