Module: Slack::Web::Api::Endpoints::FilesComments
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/files_comments.rb
Instance Method Summary collapse
-
#files_comments_add(options = {}) ⇒ Object
Add a comment to an existing file.
-
#files_comments_delete(options = {}) ⇒ Object
Deletes an existing comment on a file.
-
#files_comments_edit(options = {}) ⇒ Object
Edit an existing file comment.
Instance Method Details
#files_comments_add(options = {}) ⇒ Object
Add a comment to an existing file.
17 18 19 20 21 |
# File 'lib/slack/web/api/endpoints/files_comments.rb', line 17 def files_comments_add( = {}) throw ArgumentError.new('Required arguments :comment missing') if [:comment].nil? throw ArgumentError.new('Required arguments :file missing') if [:file].nil? post('files.comments.add', ) end |
#files_comments_delete(options = {}) ⇒ Object
Deletes an existing comment on a file.
32 33 34 35 36 |
# File 'lib/slack/web/api/endpoints/files_comments.rb', line 32 def files_comments_delete( = {}) throw ArgumentError.new('Required arguments :file missing') if [:file].nil? throw ArgumentError.new('Required arguments :id missing') if [:id].nil? post('files.comments.delete', ) end |
#files_comments_edit(options = {}) ⇒ Object
Edit an existing file comment.
49 50 51 52 53 54 |
# File 'lib/slack/web/api/endpoints/files_comments.rb', line 49 def files_comments_edit( = {}) throw ArgumentError.new('Required arguments :comment missing') if [:comment].nil? throw ArgumentError.new('Required arguments :file missing') if [:file].nil? throw ArgumentError.new('Required arguments :id missing') if [:id].nil? post('files.comments.edit', ) end |