Delete invite
discord_
Destructive
- Toolset
- Invites
invites - Discord permissions
- Manage Channels, or Manage Server
- Context cost
- 172 tokens, estimated687 bytes of definition, divided by 4
Revoke an invite by its code so it can no longer be used. IRREVERSIBLE (the code is freed). Requires the Manage Channels permission (or Manage Server). The reason is recorded in the audit log.
Risk and annotations
Read-onlyreadOnlyHint | no | Can modify your server. |
|---|---|---|
DestructivedestructiveHint | yes | May perform destructive updates, so clients can ask before running it. |
IdempotentidempotentHint | no | Repeating the call can have an additional effect. |
Open worldopenWorldHint | yes | Interacts with an external system: Discord. |
Annotations are hints the server declares. Clients use them to decide when to ask you before a call.
Parameters
| Parameter | Type | Rules | Description |
|---|---|---|---|
| invite_ | string | none | The invite code to revoke. A full discord.gg/<code> URL is also accepted. |
| reasonoptional | string | none | Optional reason recorded in the server audit log. |
Output
This tool declares no output schema. Its description says what it returns; this page shows no example rather than invent one.
Related tools
Also in Invites
Raw definition (687 bytes)
{
"name": "discord_delete_invite",
"description": "Revoke an invite by its code so it can no longer be used. IRREVERSIBLE (the code is freed). Requires the Manage Channels permission (or Manage Server). The reason is recorded in the audit log.",
"inputSchema": {
"type": "object",
"properties": {
"invite_code": {
"type": "string",
"description": "The invite code to revoke. A full discord.gg/<code> URL is also accepted."
},
"reason": {
"description": "Optional reason recorded in the server audit log.",
"type": "string"
}
},
"required": [
"invite_code"
],
"additionalProperties": false
},
"annotations": {
"title": "Delete invite",
"readOnlyHint": false,
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true
}
}