Close a vote
/api/votes/{id}/closeStop taking votes and rewrite the Discord message with the result. The vote is closed in Modbot even when Discord refuses the rewrite; the answer then says why.
Needs the ManagePosts permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
uuidResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/votes/497f6eca-6276-4993-bfeb-53cbbbba6f08/close"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "question": "string", "channelId": "string", "roleId": null, "showCounts": true, "anonymous": true, "status": "string", "createdAt": "2019-08-24T14:15:22Z", "closedAt": null, "total": 0, "options": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "label": "string", "count": 0, "voters": null } ], "messageProblem": null}Post a vote POST
Post a question in a Discord channel with a button for each option. Needs the Discord bot to be connected and to send messages in the channel. Needs the `ManagePosts` permission.
Forward a GET to VRChat GET
Sends the request to `https://api.vrchat.cloud/{path}` and answers with VRChat's status, body and the headers that matter. With a Modbot API key -- in the `Authorization` header, or as the value of a cookie named `auth`, which is where a VRChat client library puts it -- the request goes out as the group's service account. With anything else in the `auth` cookie it goes out with your own cookies, as you. Needs the `UseVRChatProxy` permission for the service account. Answers 404 while the proxy is switched off, 429 when Modbot's own pacing has stopped the proxy, and 503 when Modbot cannot reach VRChat at all.