modify_guild_vanity_invite
Change a Discord server's vanity invite code and optionally record an audit log reason. Use it to update the custom invite URL for a guild.
Instructions
Modify Guild Vanity Invite. [PATCH /guilds/{guild_id}/vanity-url]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"guild_id": "<guild_id>",
"code": "<code>"
},
"name": "modify_guild_vanity_invite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| reason | No | Reason (shown in the audit log) | |
| guild_id | Yes | Server (guild) ID |