From cca74ec8b970105ed0d2fcadffaa05c926d254fe Mon Sep 17 00:00:00 2001 From: Pedro Lopez Date: Sat, 23 May 2020 23:28:19 -0400 Subject: [PATCH] docs: indicate return type for MessageMedia.fromFilePath --- src/structures/MessageMedia.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/structures/MessageMedia.js b/src/structures/MessageMedia.js index 1381616..3d9a25b 100644 --- a/src/structures/MessageMedia.js +++ b/src/structures/MessageMedia.js @@ -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'});