Slack v0.2.1 Slack.File.Comment View Source
Functions for working with comments on files
Link to this section Summary
Link to this section Functions
Link to this function
add(client, body \\ [])
View Sourceadd(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
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")
Link to this function
delete(client, body \\ [])
View Sourcedelete(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
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")
Link to this function
edit(client, body \\ [])
View Sourceedit(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
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")