module Slack::Web::Api::Endpoints::FilesComments

Public Instance Methods

files_comments_add(options = {}) click to toggle source

Add a comment to an existing file.

@option options [Object] :comment

Text of the comment to add.

@option options [file] :file

File to add a comment to.

@see api.slack.com/methods/files.comments.add @see github.com/slack-ruby/slack-api-ref/blob/master/methods/files.comments/files.comments.add.json

# File lib/slack/web/api/endpoints/files_comments.rb, line 17
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
files_comments_delete(options = {}) click to toggle source

Deletes an existing comment on a file.

@option options [file] :file

File to delete a comment from.

@option options [Object] :id

The comment to delete.

@see api.slack.com/methods/files.comments.delete @see github.com/slack-ruby/slack-api-ref/blob/master/methods/files.comments/files.comments.delete.json

# File lib/slack/web/api/endpoints/files_comments.rb, line 32
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
files_comments_edit(options = {}) click to toggle source

Edit an existing file comment.

@option options [Object] :comment

Text of the comment to edit.

@option options [file] :file

File containing the comment to edit.

@option options [Object] :id

The comment to edit.

@see api.slack.com/methods/files.comments.edit @see github.com/slack-ruby/slack-api-ref/blob/master/methods/files.comments/files.comments.edit.json

# File lib/slack/web/api/endpoints/files_comments.rb, line 49
def files_comments_edit(options = {})
  throw ArgumentError.new('Required arguments :comment missing') if options[:comment].nil?
  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.edit', options)
end