discord_create_invite
Create a Discord channel invite link with custom expiration, usage limits, temporary membership, and unique code options to control access.
Instructions
Create an invite link for a channel with custom maxAge, maxUses, temporary membership, and unique link flag.
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": {
"channel_id": "<channel_id>"
},
"name": "discord_create_invite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Reason for creating invite. | |
| unique | No | Force create a new unique invite code. | |
| guild_id | No | Optional guild ID. | |
| max_uses | No | Max number of times this invite can be used (0 = unlimited). | |
| temporary | No | Grant temporary membership. | |
| channel_id | Yes | Channel ID or name. | |
| max_age_seconds | No | Duration of invite in seconds (0 = never expires, 86400 = 24h, default: 86400). |