Interface CreateInviteOptions

interface CreateInviteOptions {
    maxAge?: number;
    maxUses?: number;
    reason?: string;
    roleIDs?: string[];
    targetApplicationID?: string;
    targetType?: InviteTargetTypes;
    targetUserID?: string;
    targetUsers?: 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.

roleIDs?: string[]

The IDs of roles to add to the users using the invite. Requires the MANAGE_ROLES permission.

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.

targetUsers?: string[]

The IDs of users able to accept this invite.

temporary?: boolean

If the invite should be temporary.

unique?: boolean

If the invite should be unique.