Slack Developer Kit for Node.js
Go to GitHub

FilesCommentsFacet

Kind: global class

filesCommentsFacet.add(file, comment, [opts], [optCb])

Add a comment to an existing file.

Kind: instance method of [FilesCommentsFacet](#FilesCommentsFacet)
See: files.comments.add

Param Type Description
file ? File to add a comment to.
comment ? Text of the comment to add.
[opts] Object  
opts.channel ? Channel id (encoded) of which location to associate with the new comment.
[optCb] function Optional callback, if not using promises.

filesCommentsFacet.delete(file, id, [optCb])

Deletes an existing comment on a file.

Kind: instance method of [FilesCommentsFacet](#FilesCommentsFacet)
See: files.comments.delete

Param Type Description
file ? File to delete a comment from.
id ? The comment to delete.
[optCb] function Optional callback, if not using promises.

filesCommentsFacet.edit(file, id, comment, [optCb])

Edit an existing file comment.

Kind: instance method of [FilesCommentsFacet](#FilesCommentsFacet)
See: files.comments.edit

Param Type Description
file ? File containing the comment to edit.
id ? The comment to edit.
comment ? Text of the comment to edit.
[optCb] function Optional callback, if not using promises.