Global

Methods

unwrapAttachment()

Source:

Convert an attachment into a MessageSyntaxTree instance TODO: A lot of testing and variations need to be implemented

userIdentify(user) → {string}

Source:

Creates a more readable name for each user than their user ID

Parameters:
Name Type Description
user Object

Slack user object (Normally obtained through Slack's users.info endpoint)

Returns:

String to use as an identifier when logging messages

Type
string

Type Definitions

FileData

Source:
Properties:
Name Type Description
path string

Absolute path to local file

storedAs string

The name of the local file

extension string

File extension of the file

size number

Size of the object in megabytes

title string

The original title of the file

name string

The original name of the file

original Object

The original metadata of the file (Slack File Object)

id string

The ID of the file object from Slack

Data about a locally downloaded file