Add staff role from Discord
POST
/api/staff-rolesLet a Discord role give a Modbot role.
Needs the ManageUsers and ManageRoles permissions.
AuthorizationBearer <token>
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 POST "https://example.com/api/staff-roles" \ -H "Content-Type: application/json" \ -d '{ "discordRoleId": "string", "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391", "direction": "string" }'{ "on": true, "ranAt": null, "problem": null, "heldAt": null, "heldCount": null, "mappings": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "discordRoleId": "string", "discordRoleName": null, "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391", "roleName": "string", "direction": "string", "notSetUp": true, "canChange": true, "problem": null } ], "roles": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "position": 0, "canMap": true } ]}Get staff roles from Discord GET
Which Discord roles give which Modbot roles, the switch, and when the pass last ran. Needs the `ManageUsers` and `ManageRoles` permissions.
Preview staff roles from Discord POST
Who would gain or lose a role if the mappings were these. Changes nothing. Needs the `ManageUsers` and `ManageRoles` permissions.