Name an invite
/api/discord/invites/{id}Set what the invite is called, or clear it with a null name. Invites with the same name are one source in the joins report. Past joins through it take the new name.
Needs the ManageSettings permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/api/discord/invites/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "name": null }'List invites and the joins each brought GET
The server's invites with their names and how many people joined through each, and the joins per source, per day, for the last `days` days (1 to 365, default 30). Invites with the same name are one source; the vanity link is its own; joins Modbot could not trace are Unknown. `trackingOn` is false while invite tracking is off. For somebody who may change settings it first reads the invites from Discord, which needs Manage Server, and says in `readError` when that failed. Needs the `ViewAnalytics` permission.
Make an invite for each name POST
Make one invite for each name, to the given channel, with no expiry and no limit on uses, and name each. At most 20 at a time. Needs invite tracking on, and Create Invite in the channel. Answers 200 with what each name came to; a name Discord refused has an `error`, and `missingPermission` is set when the permission is why. Needs the `ManageSettings` permission.