Update server snapshot settings
/api/settings/discord-snapshotsSet the schedule (off, weekly, every-two-weeks or monthly) and whether restoring is allowed. While restoring is on the bot's invite link asks for Manage Roles, so a bot added earlier has to be added again from the new link. Turning the schedule on takes the first snapshot within ten minutes.
Needs the ManageSettings permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/api/settings/discord-snapshots" \ -H "Content-Type: application/json" \ -d '{ "schedule": "string", "restoreOn": true }'{ "schedule": "string", "restoreOn": true}Get server snapshot settings GET
How often Modbot saves a snapshot of the Discord server, and whether restoring from one is allowed. Needs the `ManageSettings` permission.
Get supporter settings GET
Whether Ko-fi and Patreon are on, whether a verification token or a Patreon webhook secret is saved (never the token or the secret), how many days after the paid month ends each site's supporters lose the roles (-1 is never), the thank-you message and the addresses to give Ko-fi and Patreon. Needs the `ManageSettings` permission.