Add more docs

This commit is contained in:
Lee 2022-11-14 03:02:56 +00:00
parent abbba82e61
commit 5e052455ce
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121

@ -106,6 +106,12 @@ export async function createFile(
return `${fileId}.${extention}`;
}
/**
* Gets the files info and the files buffer
*
* @param {string} fileId The id of the file
* @returns The file info and file buffer
*/
export async function getFileRaw(fileId) {
const fileInfo = await getFileInfo(fileId, true);
if (fileInfo == null) {