Actions44
- Message Actions
- User Profile Actions
- Server Actions
- Channel Actions
- Role Actions
- Member Actions
- Presence Actions
- Invite Actions
Invite → Create Invite
AI-generatedSummary
Create a Discord channel invite
Inputs
- channelId (required) — ID of the channel for which to create the invite
- maxAge — Time in seconds before the invite expires (0 = never). Default: 86400
- maxUses — Maximum number of uses for the invite (0 = unlimited). Default: 0
Output shape
object
On success returns an object with the invite code and URL
Examples
Example 1: Create an invite for channel 123456789 with 1‑hour expiry and limited to 5 uses
Channel ID: 123456789; Max Age: 3600; Max Uses: 5