lib/slack/web/api/endpoints/files.rb in slack-ruby-client-0.5.3 vs lib/slack/web/api/endpoints/files.rb in slack-ruby-client-0.5.4
- old
+ new
@@ -71,9 +71,10 @@
# You can pass multiple values in the types argument, like types=posts,snippets.The default value is all, which does not filter the list.
# .
# @see https://api.slack.com/methods/files.list
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/files.list.json
def files_list(options = {})
+ options = options.merge(user: users_id(options)['user']['id']) if options[:user]
post('files.list', options)
end
#
# This method allows you to create or upload an existing file.