docs: indicate return type for MessageMedia.fromFilePath
This commit is contained in:
parent
8b656c2caf
commit
cca74ec8b9
1 changed files with 1 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ class MessageMedia {
|
||||||
/**
|
/**
|
||||||
* Creates a MessageMedia instance from a local file path
|
* Creates a MessageMedia instance from a local file path
|
||||||
* @param {string} filePath
|
* @param {string} filePath
|
||||||
|
* @returns {MessageMedia}
|
||||||
*/
|
*/
|
||||||
static fromFilePath(filePath) {
|
static fromFilePath(filePath) {
|
||||||
const b64data = fs.readFileSync(filePath, {encoding: 'base64'});
|
const b64data = fs.readFileSync(filePath, {encoding: 'base64'});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue