Get staff roles from Discord
GET
/api/staff-rolesWhich Discord roles give which Modbot roles, the switch, and when the pass last ran.
Needs the ManageUsers and ManageRoles permissions.
AuthorizationBearer <token>
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/staff-roles"{ "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 } ]}Move role POST
Move a role one place up or down in the order. A person's rank is their highest role. Refused for a role that is not below your highest role, and for a move that would put a role at your own place or above it. Administrator is always first. Returns the roles in their new order. Needs the `ManageRoles` permission.
Add staff role from Discord POST
Let a Discord role give a Modbot role. Needs the `ManageUsers` and `ManageRoles` permissions.