discord_create_invite
Generate a Discord invite link for a channel. Optionally set expiration time, maximum uses, and temporary membership.
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.
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. |