List role menus
/api/settings/discord-role-menusThe role menus Modbot posts in Discord, each with the roles it gives and whether its message is up.
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-role-menus"{ "menus": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "channelId": "string", "text": "string", "style": "string", "singleChoice": true, "roles": [ { "roleId": "string", "label": "string", "emoji": null } ], "messageId": null, "postedAt": null, "changedSincePosted": true } ], "mostMenus": 0, "mostRoles": 0, "mostNameLength": 0, "mostTextLength": 0, "mostLabelLength": 0}Update welcome steps PUT
Save the welcome steps. `via` is dm, channel or both; the channel is needed for the last two. Every step is replaced by the lists sent: at most 25 rules (a role, a text of at most 80 characters on one line, and an optional https link) and at most 3 default steps. A member who holds a rule's role is sent its step; defaults fill up to three. `linkButton` adds a button to the account link page for a member who has not linked. Switching on needs at least one step, and welcomes only members who join after that. Needs the `ManageSettings` permission.
Add a role menu POST
Save a new role menu. It is not posted until Post is called. `style` is buttons or select. Between 1 and 25 roles, each with a label of at most 80 characters on one line and an optional emoji; a role with a dangerous permission is refused. Needs the `ManageSettings` permission.