Slack v0.2.1 Slack.File.Comment View Source

Functions for working with comments on files

Link to this section Summary

Functions

Add a comment to an existing file.

Delete a comment on a file.

Edit a comment on a file.

Link to this section Functions

Add a comment to an existing file.

https://api.slack.com/methods/files.comments.add

Examples

Slack.client(token)
|> Slack.File.Comment.add(file: "F1234467890", comment: "Foo")

Delete a comment on a file.

https://api.slack.com/methods/files.comments.delete

Examples

Slack.client(token)
|> Slack.File.Comment.delete(file: "F1234467890", id: "Fc1234567890")

Edit a comment on a file.

https://api.slack.com/methods/files.comments.edit

Examples

Slack.client(token)
|> Slack.File.Comment.edit(
     file: "F1234467890", id: "Fc1234567890", comment: "Hello")