Module: Slack::Web::Api::Endpoints::FilesComments

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/files_comments.rb

Instance Method Summary collapse

Instance Method Details

#files_comments_delete(options = {}) ⇒ Object

Deletes an existing comment on a file.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :file (file)

    File to delete a comment from.

  • :id (string)

    The comment to delete.

Raises:

  • (ArgumentError)

See Also:



18
19
20
21
22
# File 'lib/slack/web/api/endpoints/files_comments.rb', line 18

def files_comments_delete(options = {})
  raise ArgumentError, 'Required arguments :file missing' if options[:file].nil?
  raise ArgumentError, 'Required arguments :id missing' if options[:id].nil?
  post('files.comments.delete', options)
end