Get member milestone settings
/api/settings/discord-milestonesThe 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.
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/discord-milestones"{ "firstAt": 0, "regularAt": 0, "backDays": 0, "channelId": null, "postFirst": true, "postRegular": true, "postBack": true, "regularRoleId": null, "problem": null}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.
Update member milestone settings PUT
Change the event numbers for the first moment (`firstAt`) and for a Regular (`regularAt`), the days away for a welcome back (`backDays`), the channel (empty for none), which moments get a post, and the Regular role (empty for none). A role that holds a dangerous permission is refused. Turning a post or the role on never acts for a moment reached before. A refusal (400) lists everything wrong at once, in `problems`. Needs the `ManageSettings` permission.