CreateInviteOptions
typedef · Source
Options used to create an invite to a guild channel. Type: Object
Properties
temporary
optional
Whether members that joined via the invite should be automatically kicked after 24 hours if they have not yet received a role
Default: false
maxAge
optional
How long the invite should last (in seconds, 0 for forever)
Default: 86400
maxUses
optional
Maximum number of uses
Default: 0
unique
optional
Create a unique invite, or use an existing one with similar settings
Default: false
targetUser
optional
The user whose stream to display for this invite, required if targetType is 1, the user must be streaming in the channel
targetApplication
optional
The embedded application to open for this invite, required if targetType is 2, the application must have the EMBEDDED flag
targetType
optional
The type of the target for this voice channel invite
targetUsersFile
optional
A CSV file or users allowed to accept the invite
roleIds
optional
Roles assigned when the invite is accepted
reason
optional
The reason for creating the invite