Change a role menu
/api/settings/discord-role-menus/{id}Save changes to a role menu. The posted message is not rewritten until Post is called. A posted menu cannot move to another channel.
Needs the ManageSettings permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
uuidRequest 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
application/problem+json
curl -X PUT "https://example.com/api/settings/discord-role-menus/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "channelId": "string", "text": "string", "style": "string", "singleChoice": true, "roles": null }'{ "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}Delete a role menu DELETE
Delete the role menu and, when it is posted, its message in Discord. Roles members already picked stay with them. Needs the `ManageSettings` permission.
Post a role menu POST
Post the role menu in its channel, or rewrite its message when it is already up. Needs the Discord bot to be connected and to send messages in the channel. Needs the `ManageSettings` permission.