lib/slack/web/api/endpoints/files.rb in slack-ruby-client-0.11.0 vs lib/slack/web/api/endpoints/files.rb in slack-ruby-client-0.11.1
- old
+ new
@@ -28,10 +28,11 @@
# New filetype of the file. See https://api.slack.com/types/file#file_types for a list of all supported types.
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/undocumented/files/files.edit.json
def files_edit(options = {})
throw ArgumentError.new('Required arguments :file missing') if options[:file].nil?
throw ArgumentError.new('Required arguments :title missing') if options[:title].nil?
+ logger.warn('The files.edit method is undocumented.')
post('files.edit', options)
end
#
# Gets information about a team file.
@@ -100,9 +101,10 @@
# @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]
+ logger.warn('The files.share method is undocumented.')
post('files.share', options)
end
#
# Enables a file for public/external sharing.