Get Discord server
/api/discord/serverThe 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.
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/discord/server"{ "guildId": null, "name": null, "iconUrl": null, "bannerUrl": null, "createdAt": null, "members": null, "online": null, "boostCount": null, "boostLevel": null}Unban a person POST
There 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.
List Discord bans GET
The Discord server's bans as the bot last saw them. Bans that stand by default; `status=lifted` shows bans that were lifted, `status=all` both. `search` matches the name, username and id, case-insensitively. Newest first. The whole list is read from Discord when the bot signs in and once a day, which needs Ban Members or View Audit Log (`coverage.canRead`); bans and unbans seen as they happen change the list between reads. `bannedAt` is null for a ban that was already in place when it was found, because Discord's list carries no date. `coverage.listedAt` is null until the whole list has been read once. Needs the `ViewAuditLog` permission.