Slack Developer Kit for Node.js
    
    
Kind: global class
Deletes a file.
Kind: instance method of [FilesFacet](#FilesFacet)
See: files.delete
| Param | Type | Description | 
|---|---|---|
| file | ? | 
      ID of file to delete. | 
| [optCb] | function | 
      Optional callback, if not using promises. | 
Gets information about a team file.
Kind: instance method of [FilesFacet](#FilesFacet)
See: files.info
| Param | Type | Description | 
|---|---|---|
| file | ? | 
      Specify a file by providing its ID. | 
| [opts] | Object | 
      |
| [optCb] | function | 
      Optional callback, if not using promises. | 
Lists & filters team files.
Kind: instance method of [FilesFacet](#FilesFacet)
See: files.list
| Param | Type | Description | 
|---|---|---|
| [opts] | Object | 
      |
| opts.user | ? | 
      Filter files created by a single user. | 
| opts.channel | ? | 
      Filter files appearing in a specific channel, indicated by its ID. | 
| opts.ts_from | ? | 
      Filter files created after this timestamp (inclusive). | 
| opts.ts_to | ? | 
      Filter files created before this timestamp (inclusive). | 
| opts.types | ? | 
      Filter files by type:   * all - All files   * spaces - Posts   * snippets - Snippets   * images - Image files   * gdocs - Google docs   * zips - Zip files   * pdfs - PDF files   You can pass multiple values in the types argument, like types=spaces,snippets.The default   value is all, which does not filter the list. | 
    
| [optCb] | function | 
      Optional callback, if not using promises. | 
Revokes public/external sharing access for a file
Kind: instance method of [FilesFacet](#FilesFacet)
See: files.revokePublicURL
| Param | Type | Description | 
|---|---|---|
| file | ? | 
      File to revoke | 
| [optCb] | function | 
      Optional callback, if not using promises. | 
Enables a file for public/external sharing.
Kind: instance method of [FilesFacet](#FilesFacet)
See: files.sharedPublicURL
| Param | Type | Description | 
|---|---|---|
| file | ? | 
      File to share | 
| [optCb] | function | 
      Optional callback, if not using promises. | 
Uploads or creates a file.
Kind: instance method of [FilesFacet](#FilesFacet)
See: files.upload
| Param | Type | Description | 
|---|---|---|
| filename | ? | 
      Filename of file. | 
| [opts] | Object | 
      |
| opts.file | ? | 
      File contents via multipart/form-data. If omitting this parameter, you   must submit content. | 
    
| opts.content | ? | 
      File contents via a POST variable. If omitting this parameter, you   must provide a file. | 
    
| opts.filetype | ? | 
      A file type identifier. | 
| opts.title | ? | 
      Title of file. | 
| opts.initial_comment | ? | 
      Initial comment to add to file. | 
| opts.channels | ? | 
      Comma-separated list of channel names or IDs where the file will be shared. | 
| [optCb] | function | 
      Optional callback, if not using promises. |