discord_create_invite
Create invite links for Discord channels with configurable lifetime, usage limits, and temporary membership. Returns the invite URL and code.
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 |
|---|---|---|---|
| channel_id | Yes | ID (snowflake) of the channel the invite leads to. | |
| max_age | No | Invite lifetime in seconds; 0 means it never expires. Default 86400 (24h). | |
| max_uses | No | Maximum number of uses; 0 means unlimited. Default 0. | |
| unique | No | If true, always mint a fresh invite instead of reusing an equivalent existing one. Default false. | |
| temporary | No | If true, members who join via this invite are removed when they disconnect (unless they get a role). Default false. |