interface GatewayInviteCreateDispatchData {
    channel_id: string;
    code: string;
    created_at: number;
    expires_at: null | string;
    guild_id?: string;
    inviter?: APIUser;
    max_age: number;
    max_uses: number;
    target_application?: Partial<APIApplication>;
    target_type?: InviteTargetType;
    target_user?: APIUser;
    temporary: boolean;
    uses: 0;
}

Properties

channel_id: string

The channel the invite is for

code: string

The unique invite code

created_at: number

The time at which the invite was created

expires_at: null | string

The expiration date of this invite.

guild_id?: string

The guild of the invite

inviter?: APIUser

The user that created the invite

max_age: number

How long the invite is valid for (in seconds)

max_uses: number

The maximum number of times the invite can be used

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 or not the invite is temporary (invited users will be kicked on disconnect unless they're assigned a role)

uses: 0

How many times the invite has been used (always will be 0)