FILE.WRITE
Writes Discord attachment content to a file.
Syntax
Requires: Attach a file to the message
Arguments
| Argument | Type | Description |
|---|---|---|
PATH |
Required | Destination file path |
Examples
Write to Config
(Attach config.json file to message)
Behavior
- Overwrites existing file
- Creates file if it doesn't exist
- File content comes from Discord attachment
See Also
- FILE.READ - Read files
- FILE.CLEAR - Clear file contents