lib/slack/web/api/endpoints/files.rb in slack-ruby-client-0.5.0 vs lib/slack/web/api/endpoints/files.rb in slack-ruby-client-0.5.1

- old
+ new

@@ -72,13 +72,15 @@ # @option options [Object] :title # Title of file. # @option options [Object] :initial_comment # Initial comment to add to file. # @option options [Object] :channels - # Comma separated list of channels to share the file into. + # Comma-separated list of channel names or IDs where the file will be shared. # @see https://api.slack.com/methods/files.upload # @see https://github.com/dblock/slack-api-ref/blob/master/methods/files.upload.json def files_upload(options = {}) + throw ArgumentError.new('Required arguments :file missing') if options[:file].nil? + throw ArgumentError.new('Required arguments :filename missing') if options[:filename].nil? post('files.upload', options) end end end end