InviteCreateOptions

export interface InviteCreateOptions
export interface InviteCreateOptions
Options used to create an invite to a guild channel.
maxAge?:number
How long the invite should last (in seconds, 0 for forever)
maxUses?:number
Maximum number of uses
reason?:string
The reason for creating the invite
targetApplication?:ApplicationResolvable
The embedded application to open for this invite, required if targetType is InviteTargetType.Stream, the application must have the InviteTargetType.EmbeddedApplication flag
targetType?:InviteTargetType
The type of the target for this voice channel invite
targetUser?:UserResolvable
The user whose stream to display for this invite, required if targetType is InviteTargetType.Stream, the user must be streaming in the channel
temporary?:boolean
Whether members that joined via the invite should be automatically kicked after 24 hours if they have not yet received a role
unique?:boolean
Create a unique invite, or use an existing one with similar settings