read
.read() will read a file and return it's contents and name.
// Dependencies
const CubedCraft = require('cubed-api');
// Reading the file
CubedCraft.files.read('SessionID', '/plugins/Skript/scripts/hi.sk').then(file => {
console.log(file);
});{
title: 'hi.sk',
content: 'command /hi:\r\n trigger:\r\n send "hi"'
}Last updated