RESTPostAPIChannelInviteJSONBody
Index
Properties
optionalmax_age
Duration of invite in seconds before expiry, or 0 for never
optionalmax_uses
Max number of uses or 0 for unlimited
optionaltarget_application_id
The id of the embedded application to open for this invite
- Required if
target_type
is 2 - The application must have the
EMBEDDED
flag
optionaltarget_type
The type of target for this voice channel invite
See https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types
optionaltarget_user_id
The id of the user whose stream to display for this invite
- Required if
target_type
is 1 - The user must be streaming in the channel
optionaltemporary
Whether this invite only grants temporary membership
optionalunique
If true, don't try to reuse a similar invite (useful for creating many unique one time use invites)
https://discord.com/developers/docs/resources/channel#create-channel-invite