interface APIExtendedInvite {
    approximate_member_count?: number;
    approximate_presence_count?: number;
    channel: null | APIInviteChannel;
    code: string;
    created_at: string;
    expires_at: null | string;
    flags?: IsGuestInvite;
    guild?: APIInviteGuild;
    guild_scheduled_event?: APIGuildScheduledEvent;
    inviter?: APIUser;
    max_age: number;
    max_uses: number;
    stage_instance?: undefined;
    target_application?: Partial<APIApplication>;
    target_type?: InviteTargetType;
    target_user?: APIUser;
    temporary: boolean;
    type: InviteType;
    uses: number;
}

Hierarchy (View Summary)

Properties

approximate_member_count?: number

Approximate count of total members, returned from the GET /invites/<code> endpoint when with_counts is true

approximate_presence_count?: number

Approximate count of online members, returned from the GET /invites/<code> endpoint when with_counts is true

channel: null | APIInviteChannel

The channel this invite is for

code: string

The invite code (unique ID)

created_at: string

When this invite was created

expires_at: null | string

The expiration date of this invite

The flags of the invite

The guild this invite is for

guild_scheduled_event?: APIGuildScheduledEvent

The guild scheduled event data, returned from the GET /invites/<code> endpoint when guild_scheduled_event_id is a valid guild scheduled event id

inviter?: APIUser

The user who created the invite

max_age: number

Duration (in seconds) after which the invite expires

max_uses: number

Max number of times this invite can be used

stage_instance?: undefined

The stage instance data if there is a public stage instance in the stage channel this invite is for

This has been removed from the documentation. discord-api-docs#7779

target_application?: Partial<APIApplication>

The embedded application to open for this voice channel embedded application invite

target_type?: InviteTargetType

The type of target for this voice channel invite

target_user?: APIUser

The user whose stream to display for this voice channel stream invite

temporary: boolean

Whether this invite only grants temporary membership

The invite type

uses: number

Number of times this invite has been used