discord_create_invite
Create a Discord channel invite link with optional expiration, use limits, and temporary membership controls. Returns the invite URL and code for sharing access.
Instructions
Create an invite link for a channel, optionally limiting its lifetime, uses, and membership type. SECURITY: anyone with the returned link can join the server. Requires the Create Instant Invite permission. Returns the invite URL and code.
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 |
|---|---|---|---|
| unique | No | If true, always mint a fresh invite instead of reusing an equivalent existing one. Default false. | |
| max_age | No | Invite lifetime in seconds, 0–604800 (7 days); 0 means it never expires. Default 86400 (24h). | |
| max_uses | No | Maximum number of uses, 0–100; 0 means unlimited. Default 0. | |
| temporary | No | If true, members who join via this invite are removed when they disconnect (unless they get a role). Default false. | |
| channel_id | Yes | ID (snowflake) of the channel the invite leads to. |