/backup
Export a webhook's repositories and event modifiers to a .glb JSON backup file.
Creates a backup of all repositories and event modifiers associated with a webhook and sends the file as a Discord attachment. The file uses the .glb extension and contains JSON data at backup protocol version 2.
Usage
Parameters
| Prop | Type | Default |
|---|---|---|
id | string | - |
Permissions
Requires Manage Server (MANAGE_GUILD).
Cooldown
None.
Response
The bot replies with a message and attaches a file named WEBHOOK_ID.glb. Save this file — you'll need it if you ever want to restore.
Notes
- The backup includes all repositories and event modifiers for the specified webhook.
- The backup file does not include the webhook secret. If you're migrating to a new server, you'll need to run
/newhookto get new credentials, then/restoreto repopulate repos and modifiers. - Store the backup file securely — it contains channel IDs and repository names.
- Use
/restoreto apply the backup.