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

A new file commenting experience arrived on July 23, 2018. Learn more about what’s new and the migration path for apps already working with files and file comments.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :file (file)

    File to delete a comment from.

  • :id (Object)

    The comment to delete.

See Also:



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

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