Unban a person
/api/moderation/unbanThere has to be a ban to lift; VRChat answers an unban of anybody who is not banned with "they are not banned". Nothing is recorded as done unless VRChat accepted it. A reason is optional unless the group has asked for one. When the person has a linked Discord account, its ban is lifted too. The key makes one confirmation act once.
Needs the Unban permission.
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
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/moderation/unban" \ -H "Content-Type: application/json" \ -d '{ "userId": "string", "key": "string" }'{ "action": "string", "userId": "string", "done": true, "at": "2019-08-24T14:15:22Z", "caseId": null, "error": null, "rateLimited": true, "repeat": true, "gone": false, "missingGroupPermission": null, "discordDone": false, "discordError": null, "caseFileError": null}Ban a person POST
Works on anybody, member or not: VRChat's group ban takes a user id, so somebody who has never joined can be kept out before they arrive. A person Modbot has never seen is recorded as a person by the ban, and their profile is fetched afterwards. A reason is required, and the ban's case file is written from it and the note. Nothing is recorded as done unless VRChat accepted it. When Discord is set up and the person has linked their Discord account, that account is banned too, whatever the ban sync switches say; if Discord refuses, the VRChat ban stands and the answer says what Discord said. The key makes one confirmation act once. Needs the `Ban` permission.
Get Discord server GET
The Discord server in settings as its own server profile shows it: name, icon and banner, the day it was made (read from its id), Discord's member count from the newest reading, how many members Discord counts as online, and its boosts and boost level. All but the online count is what the bot last stored. The online count is asked of Discord and kept five minutes, and is null when the bot is not connected. Every field is null when no server is set. Needs the `ViewMembers` permission.