You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncreadFile(encoding){if(segments.length===4&&segments[0]==='bots'&&segments[2]==='commands'){const{ botId, commandId }=resolvePath();constcommand=awaitapiRequest(`/bots/${botId}/commands/${commandId}`);if(!command)thrownewError(`Command not found: ${commandId}`);letcode=command.code;constencoder=newTextEncoder();constarrayBuffer=encoder.encode(code);// Convert string to ArrayBuffer (UTF-8)if(encoding){// If encoding is provided, decode the file contentif(encodings?.decode){constdecoded=awaitencodings.decode(code,encoding);if(decoded)returndecoded;}// If no specific decoding method is found, use a fallbackreturnhelpers.decodeText(code,encoding);}returnarrayBuffer;}thrownewError('Not a file or unsupported path');},
Environment
957
If applicable, add mockups / screenshots regarding your vision
No response
If applicable, attach your Acode.log file to this issue.
Activity
UnschooledGamer commentedon Apr 19, 2025
Hey @Jobians , Your Issue seems incomplete, Kindly make it more informative.
Jobians commentedon Apr 19, 2025
@UnschooledGamer check the screenshot