Represents a collection of transferred files from a file transfer event
os.pullEvent<Events["file_transfer"]>("file_transfer").then(([files]) => { const transferredFiles = files.getFiles(); for (const file of transferredFiles) { console.log(`Received file: ${file.getName()}`); }}); Copy
os.pullEvent<Events["file_transfer"]>("file_transfer").then(([files]) => { const transferredFiles = files.getFiles(); for (const file of transferredFiles) { console.log(`Received file: ${file.getName()}`); }});
Represents a collection of transferred files from a file transfer event