Add Discord route
/api/discord/routesStart sending events to a channel. A channel and at least one event type are needed. Sending starts from the moment it is saved; nothing that happened before is posted.
Needs the ManageSettings 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
curl -X POST "https://example.com/api/discord/routes" \ -H "Content-Type: application/json" \ -d '{ "name": null, "channelId": null, "enabled": null, "eventTypes": null, "subjectIds": null, "actorIds": null, "actorAutomatic": null, "subjectVRChatRoleIds": null, "actorVRChatRoleIds": null, "actorModbotRoleIds": null }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": null, "channelId": "string", "enabled": true, "eventTypes": [ "string" ], "subjectIds": [ "string" ], "subjectDiscordIds": [ "string" ], "actorIds": [ "string" ], "actorDiscordIds": [ "string" ], "actorAutomatic": true, "subjectVRChatRoleIds": [ "string" ], "actorVRChatRoleIds": [ "string" ], "actorModbotRoleIds": [ "29fdf8c8-98dd-48d9-89e8-7382e935877c" ]}List Discord routes GET
Every route, in list order, with the event types that may be chosen (grouped, labelled), the group's VRChat roles as last read, Modbot's roles, and names for the people routes already name. Needs the `ManageSettings` permission.
Delete Discord route DELETE
Stop sending events to a channel and forget the rule. Needs the `ManageSettings` permission.