Skip to main content
Version: Next

APIExtendedInvite

Hierarchy

Index

Properties

optionalinheritedapproximate_member_count

approximate_member_count?: number

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

optionalinheritedapproximate_presence_count

approximate_presence_count?: number

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

inheritedchannel

channel: null | Required<APIPartialChannel>

inheritedcode

code: string

The invite code (unique ID)

created_at

created_at: string

When this invite was created

optionalinheritedexpires_at

expires_at?: null | string

The expiration date of this invite, returned from the GET /invites/<code> endpoint when with_expiration is true

optionalinheritedguild

optionalinheritedguild_scheduled_event

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

optionalinheritedinviter

inviter?: APIUser

max_age

max_age: number

Duration (in seconds) after which the invite expires

max_uses

max_uses: number

Max number of times this invite can be used

optionalinheritedstage_instance

stage_instance?: APIInviteStageInstance

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

@deprecated

optionalinheritedtarget_application

target_application?: Partial<APIApplication>

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

See https://discord.com/developers/docs/resources/application#application-object

optionalinheritedtarget_type

target_type?: InviteTargetType

optionalinheritedtarget_user

target_user?: APIUser

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

See https://discord.com/developers/docs/resources/user#user-object

temporary

temporary: boolean

Whether this invite only grants temporary membership

inheritedtype

The invite type

uses

uses: number

Number of times this invite has been used