Entity Info
serverSnapshot
$serverSnapshot[] — Save the structure of a server
$serverSnapshot[] returns a JSON text (version 1) describing the roles, categories, channels (type, topic, slowmode, NSFW) and permission overwrites of the server. Messages, members and files are not included. Keep the text with $fileUpload and give it back to $serverRestore. Not in BibiScript.
Syntax
$serverSnapshot[(serverID)]
Parameters
| Parameter | Description |
|---|---|
serverID |
Optional. The server to read. If omitted, the current server (or the one chosen by $useGuild). |
Return Value
- Type:
string(JSON)
Examples
$fileUpload[backups/$guildID/$getTimestamp.json;$serverSnapshot]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.