Modbot Docs
APIAPI referenceDiscord

Add Discord route

POST/api/discord/routes

Start 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.

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 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"  ]}

Modbot is not endorsed by or affiliated with VRChat Inc. or Discord Inc. VRChat is a trademark of VRChat Inc. Discord is a trademark of Discord Inc. SteamVR is a trademark of Valve Corporation. Windows is a trademark of Microsoft Corporation. Docker is a trademark of Docker, Inc. PostgreSQL is a trademark of the PostgreSQL Community Association of Canada. Railway is a trademark of Railway Corp. Other names are trademarks of their respective owners; see Legal. Modbot and its logo are trademarks of the Modbot project. Open source under AGPL-3.0.