Method: Slack::Endpoint::Files#files_comments_add

Defined in:
lib/slack/endpoint/files.rb

#files_comments_add(options = {}) ⇒ Object

Add a comment to an existing file.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :comment (Object)

    Text of the comment to add.

  • :file (Object)

    File to add a comment to.

See Also:



16
17
18
19
20
# File 'lib/slack/endpoint/files.rb', line 16

def files_comments_add(options={})
  throw ArgumentError.new("Required arguments :comment missing") if options[:comment].nil?
  throw ArgumentError.new("Required arguments :file missing") if options[:file].nil?
  post("files.comments.add", options)
end