Creates a new invite for the specified channel with optional parameters such as maximum age, maximum uses, and temporary membership settings. The authenticated user must have permission to create invites for the channel. Returns the created invite with full metadata including usage statistics.
Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
The ID of the channel
Maximum number of times this invite can be used (0 for unlimited)
0 <= x <= 100Duration in seconds before the invite expires (0 for never)
0 <= x <= 604800Whether to create a new unique invite or reuse an existing one
Whether members that joined via this invite should be kicked after disconnecting
Success
The unique invite code
The type of invite (guild)
0 The guild this invite is for
The approximate total member count of the guild
0 <= x <= 2147483647The approximate online member count of the guild
0 <= x <= 2147483647Whether the invite grants temporary membership
ISO8601 timestamp of when the invite was created
The number of times this invite has been used
0 <= x <= 2147483647The maximum number of times this invite can be used
0 <= x <= 2147483647The duration in seconds before the invite expires
0 <= x <= 2147483647The user who created the invite
ISO8601 timestamp of when the invite expires