Invites

Create channel invite

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.

post/channels/{channel_id}/invites

Path parameters

string snowflake required
OR
integer required

The ID of the channel

Request body

max_usesinteger nullable

Maximum number of times this invite can be used (0 for unlimited)

max_ageinteger nullable

Duration in seconds before the invite expires (0 for never)

uniqueboolean nullable

Whether to create a new unique invite or reuse an existing one

temporaryboolean nullable

Whether members that joined via this invite should be kicked after disconnecting

Response

Success

OR

Changes