Update supporter settings
/api/settings/supportersSwitch 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.
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/supporters" \ -H "Content-Type: application/json" \ -d '{ "kofiOn": null, "verificationToken": null, "thanksText": null }'{ "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}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.
Get member milestone settings GET
The numbers behind the first-event, Regular and welcome-back moments, which of them get a post in the channel, and the role given to a Regular who has a linked account. `problem` says what stopped the last post or role, or that Modbot cannot give the role. Needs the `ManageSettings` permission.