lib/slack/web/api/endpoints/im.rb in slack-ruby-client-0.7.5 vs lib/slack/web/api/endpoints/im.rb in slack-ruby-client-0.7.6

- old
+ new

@@ -69,9 +69,11 @@ # # This method opens a direct message channel with another member of your Slack team. # # @option options [user] :user # User to open a direct message channel with. + # @option options [Object] :return_im + # Boolean, indicates you want the full IM channel definition in the response. # @see https://api.slack.com/methods/im.open # @see https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.open.json def im_open(options = {}) throw ArgumentError.new('Required arguments :user missing') if options[:user].nil? options = options.merge(user: users_id(options)['user']['id']) if options[:user]