Sha256: de66600f179612d278106d67e4b17a715a88c5bbfc87b75b25dfebef41e0c502

Contents?: true

Size: 949 Bytes

Versions: 2

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 [string] :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

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-1.1.0 lib/slack/web/api/endpoints/files_comments.rb
slack-ruby-client-1.0.0 lib/slack/web/api/endpoints/files_comments.rb