Skip to content

DataManager

DataManager

A utility class for managing data.

Kind: global class

DataManager.resolveFile(file) ⇒ Promise.<(Buffer|null)>

Resolves a file to be used in a function or operation.

Kind: static method of DataManager
Returns: Promise.<(Buffer|null)> - - A promise that resolves to the resolved file as a Buffer, or null if the file cannot be resolved.

ParamTypeDescription
fileBuffer | MessageAttachment | ObjectThe file to resolve.