lib/slack/web/api/endpoints/files.rb in slack-ruby-client-0.15.1 vs lib/slack/web/api/endpoints/files.rb in slack-ruby-client-0.16.0
- old
+ new
@@ -34,11 +34,11 @@
logger.warn('The files.edit method is undocumented.')
post('files.edit', options)
end
#
- # Gets information about a team file.
+ # Gets information about a file.
#
# @option options [file] :file
# Specify a file by providing its ID.
# @option options [Object] :cursor
# Parameter for pagination. File comments are paginated for a single file. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection of comments. See pagination for more details.
@@ -56,15 +56,17 @@
post('files.info', options)
end
end
#
- # Lists & filters team files.
+ # List for a team, in a channel, or from a user with applied filters.
#
# @option options [channel] :channel
# Filter files appearing in a specific channel, indicated by its ID.
# @option options [Object] :show_files_hidden_by_limit
# Show truncated file info for files hidden due to being too old, and the team who owns the file being over the file limit.
+ # @option options [Object] :team_id
+ # encoded team id to list files in, required if org token is used.
# @option options [Object] :ts_from
# Filter files created after this timestamp (inclusive).
# @option options [Object] :ts_to
# Filter files created before this timestamp (inclusive).
# @option options [Object] :types