Sha256: fa78f247f7820ae2a0ddec3236bb85c5ec7d9dc9bf6af2e3c8e66d2953c60b8c

Contents?: true

Size: 949 Bytes

Versions: 6

Compression:

Stored size: 949 Bytes

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Web
    module Api
      module Endpoints
        module FilesComments
          #
          # 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 https://api.slack.com/methods/files.comments.delete
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.comments/files.comments.delete.json
          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
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slack-ruby-client-0.17.0 lib/slack/web/api/endpoints/files_comments.rb
slack-ruby-client-0.16.0 lib/slack/web/api/endpoints/files_comments.rb
slack-ruby-client-0.15.1 lib/slack/web/api/endpoints/files_comments.rb
slack-ruby-client-0.15.0 lib/slack/web/api/endpoints/files_comments.rb
slack-ruby-client-0.14.6 lib/slack/web/api/endpoints/files_comments.rb
slack-ruby-client-0.14.5 lib/slack/web/api/endpoints/files_comments.rb