docs: indicate return type for MessageMedia.fromFilePath

This commit is contained in:
Pedro Lopez
2020-05-23 23:28:19 -04:00
parent 8b656c2caf
commit cca74ec8b9

View File

@@ -34,6 +34,7 @@ class MessageMedia {
/**
* Creates a MessageMedia instance from a local file path
* @param {string} filePath
* @returns {MessageMedia}
*/
static fromFilePath(filePath) {
const b64data = fs.readFileSync(filePath, {encoding: 'base64'});