Discord.https - v3.0.16
    Preparing search index...

    Interface RESTPostAPIChannelInviteJSONBody

    interface RESTPostAPIChannelInviteJSONBody {
        max_age?: number;
        max_uses?: number;
        target_application_id?: string;
        target_type?: InviteTargetType;
        target_user_id?: string;
        temporary?: boolean;
        unique?: boolean;
    }
    Index

    Properties

    max_age?: number

    Duration of invite in seconds before expiry, or 0 for never

    86400 (24 hours)

    max_uses?: number

    Max number of uses or 0 for unlimited

    0

    target_application_id?: string

    The id of the embedded application to open for this invite

    • Required if target_type is 2
    • The application must have the EMBEDDED flag
    target_type?: InviteTargetType

    The type of target for this voice channel invite

    target_user_id?: string

    The id of the user whose stream to display for this invite

    • Required if target_type is 1
    • The user must be streaming in the channel
    temporary?: boolean

    Whether this invite only grants temporary membership

    false

    unique?: boolean

    If true, don't try to reuse a similar invite (useful for creating many unique one time use invites)

    false