Update the command switches
PUT
/api/settings/discord-commandsSwitch Discord commands on or off. A command that is off is not registered on the server. Refused in the demo.
Needs the ManageSettings permission.
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 PUT "https://example.com/api/settings/discord-commands" \ -H "Content-Type: application/json" \ -d '{ "commands": { "property1": true, "property2": true } }'{ "commands": [ { "name": "string", "menu": true, "on": true, "onByDefault": true } ]}Get the command switches GET
Every Discord command with whether it is on, and what it does until chosen. Needs the `ManageSettings` permission.
Get join gate settings GET
The Discord join gate's settings: its mode, the member role, the gate channel and message, the steps, the removal time and join spike protection. Needs the `ManageSettings` permission.