Interface CreateInviteOptions

interface CreateInviteOptions {
    maxAge?: number;
    maxUses?: number;
    reason?: string;
    targetApplicationID?: string;
    targetType?: InviteTargetTypes;
    targetUserID?: string;
    temporary?: boolean;
    unique?: boolean;
}

Properties

maxAge?: number

How long the invite should last.

maxUses?: number

How many times the invite can be used.

reason?: string

The reason for creating the invite.

targetApplicationID?: string

The id of the embedded application to open for this invite.

targetType?: InviteTargetTypes

The type of target for the invite.

targetUserID?: string

The ID of the user whose stream to display for this invite.

temporary?: boolean

If the invite should be temporary.

unique?: boolean

If the invite should be unique.