List possible duplicate Discord events
/api/calendar/discord-duplicatesEvents in the Discord server, made by anyone, that look like copies of each other: the same title once case, spaces, punctuation, emoji and anything in brackets are left out, starting at most 15 minutes apart. Says which bot made each copy and which is Modbot's own; a person is never named. Discord is asked at most once every five minutes. Changes nothing.
Needs the ViewCalendar 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/calendar/discord-duplicates"{ "read": true, "readAt": null, "duplicates": [ { "title": "string", "startsAt": "2019-08-24T14:15:22Z", "copies": [ { "id": "string", "name": "string", "startsAt": "2019-08-24T14:15:22Z", "started": true, "madeBy": "string", "botName": null, "calendarEventId": null, "calendarEventTitle": null } ] } ]}Fetch picture link POST
Fetches the picture behind an event's picture link and returns its bytes, for the form to crop. Needs Manage calendar or Manage templates. The link must be https on port 443. Modbot connects only to public addresses, checks every redirect the same way and follows at most three, reads a page only as far as its og:image or twitter:image, stops at 10 MB and 15 seconds, and returns only PNG, JPEG, GIF, WebP, BMP, AVIF or HEIC, told apart by the bytes. A VRChat file link is fetched with Modbot's VRChat session. Nothing is kept. Needs the `ViewCalendar` permission.
Find events like one about to be saved POST
Events in Modbot's calendar, including the ones kept from VRChat's group calendar the last time it was read, with the same title (as the Discord duplicate finder compares titles) starting at most 15 minutes apart. Reads only what Modbot has stored: VRChat is not asked, so a save never waits on it. Changes nothing and never refuses a save. Needs the `ManageCalendar` permission.