Preview deployment

interface InviteCreateOptions

export interface InviteCreateOptions

Options used to create an invite to a guild channel.

optional
maxAge? : number

How long the invite should last (in seconds, 0 for forever)

optional
maxUses? : number

Maximum number of uses

optional
reason? : string

The reason for creating the invite

optional
targetApplication? : ApplicationResolvable

The embedded application to open for this invite, required if targetType is InviteTargetType, the application must have the InviteTargetType flag

optional
targetType? : InviteTargetType

The type of the target for this voice channel invite

optional
targetUser? : UserResolvable

The user whose stream to display for this invite, required if targetType is InviteTargetType, the user must be streaming in the channel

optional
temporary? : boolean

Whether members that joined via the invite should be automatically kicked after 24 hours if they have not yet received a role

optional
unique? : boolean

Create a unique invite, or use an existing one with similar settings