Creates a new InvitePayload
instance.
Optional
data: { Optional initial data to set in the payload.
Optional
max_Optional
max_Optional
target_Optional
target_Optional
target_Optional
temporary?: booleanOptional
unique?: booleanGets the duration (in seconds) before the invite expires. 0 means the invite never expires. Must be between 0 and 604800 (7 days).
The invite expiration duration in seconds.
Sets the duration (in seconds) before the invite expires.
Duration in seconds (0 to 604800).
Gets the maximum number of uses for the invite. 0 means unlimited uses. Must be between 0 and 100.
The maximum number of uses.
Sets the maximum number of uses for the invite.
Maximum uses (0 to 100).
Gets the ID of the embedded application to launch. Required if target_type is 2 (Embedded Application).
The target application ID.
Sets the ID of the embedded application to launch.
Target application ID.
Gets the target type of the voice channel invite. 1 = Stream, 2 = Embedded Application.
The target type number.
Sets the target type of the voice channel invite.
Target type (1 for Stream, 2 for Embedded Application).
Gets the user ID whose stream should be displayed. Required if target_type is 1 (Stream).
The target user ID.
Sets the user ID whose stream should be displayed.
Target user ID.
Gets whether the invite grants temporary membership.
True if temporary membership is granted.
Sets whether the invite grants temporary membership.
True to grant temporary membership.
Gets whether the invite should always create a new unique invite. Useful for generating one-time-use invites.
True if invite is unique.
Sets whether the invite should always create a new unique invite.
True to create a unique invite.
Represents the payload for creating a Discord invite. This class encapsulates all parameters needed to create an invite.