T
NativePlatformFiles
File operations inside the Unbound folder in Discord's documents directory.
type NativePlatformFiles = { … }Members
read?
(path: string): string | undefinedReads a text file, by path relative to the Unbound folder; undefined when it is missing. Older loaders lack it.
remove
(path: string): booleanRemoves a file or folder tree, by path relative to the Unbound folder; returns whether anything was removed.
write?
(path: string, text: string): booleanReplaces a text file atomically, by path relative to the Unbound folder; returns whether it was written. Older loaders lack it.