Slack v0.23.5 Slack.Web.Files.Comments View Source

Link to this section Summary

Functions

Add a comment to an existing file

Deletes an existing comment on a file

Edit an existing file comment

Link to this section Functions

Link to this function

add(comment, file, optional_params \\ %{}) View Source

Add a comment to an existing file.

Required Params

  • comment - Text of the comment to add. ex: Everyone should take a moment to read this file.
  • file - File to add a comment to. ex: F1234567890

Errors the API can return:

  • file_deleted - The requested file was previously deleted.
  • file_not_found - The requested file could not be found.
  • no_comment - The comment field was empty.
Link to this function

delete(file, id, optional_params \\ %{}) View Source

Deletes an existing comment on a file.

Required Params

  • file - File to delete a comment from. ex: F1234567890
  • id - The comment to delete. ex: Fc1234567890

Errors the API can return:

  • cant_delete - The requested comment could not be deleted.
  • file_deleted - The requested file was previously deleted.
  • file_not_found - The requested file could not be found.
Link to this function

edit(comment, file, id, optional_params \\ %{}) View Source

Edit an existing file comment.

Required Params

  • comment - Text of the comment to edit. ex: Everyone should take a moment to read this file, seriously.
  • file - File containing the comment to edit. ex: F1234567890
  • id - The comment to edit. ex: Fc1234567890

Errors the API can return:

  • cant_edit - The requested file could not be found.
  • edit_window_closed - The timeframe for editing the comment has expired.
  • file_deleted - The requested file was previously deleted.
  • file_not_found - The requested file could not be found.
  • no_comment - The comment field was empty.