Get supporter settings
/api/settings/supportersWhether 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.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/settings/supporters"{ "kofiOn": true, "tokenStored": true, "thanksText": "string", "webhookAddress": null, "mostThanksLength": 0, "patreonOn": true, "patreonSecretStored": true, "patreonWebhookAddress": null, "kofiRolesOffDays": 0, "patreonRolesOffDays": 0, "mostRolesOffDays": 0, "patreonClientIdStored": true, "patreonClientSecretStored": true, "patreonAccessTokenStored": true, "patreonRefreshTokenStored": true, "patreonCatchUpAt": null, "patreonCatchUpProblem": null}Update server snapshot settings PUT
Set 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.
Update supporter settings PUT
Switch Ko-fi or Patreon on or off, save the verification token from Ko-fi's webhook page, the webhook secret from Patreon's and the four keys of the Patreon client (client id, client secret, creator access token, creator refresh token), all kept encrypted and never returned; saving a new key starts the Patreon catch-up over. Set how many days after the paid month ends each site's supporters lose the roles (0 to 365, or -1 for never) and set the thank-you message. Neither can be switched on without its token or secret. While either 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. Needs the `ManageSettings` permission.