lib/slack/web/api/endpoints/files.rb in slack-ruby-client-0.14.6 vs lib/slack/web/api/endpoints/files.rb in slack-ruby-client-0.15.0

- old
+ new

@@ -73,11 +73,11 @@ # @option options [user] :user # Filter files created by a single user. # @see https://api.slack.com/methods/files.list # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files/files.list.json def files_list(options = {}) - options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] + options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel] options = options.merge(user: users_id(options)['user']['id']) if options[:user] post('files.list', options) end # @@ -101,10 +101,10 @@ # Channel to share the file in. Works with both public (channel ID) and private channels (group ID). # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/undocumented/files/files.share.json def files_share(options = {}) throw ArgumentError.new('Required arguments :file missing') if options[:file].nil? throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? - options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] + options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel] logger.warn('The files.share method is undocumented.') post('files.share', options) end #