Skip to main content
Version: 0.37.33

APIInvite

Hierarchy

Index

Properties

optionalapproximate_member_count

approximate_member_count?: number

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

optionalapproximate_presence_count

approximate_presence_count?: number

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

channel

channel: null | Required<APIPartialChannel>

code

code: string

The invite code (unique ID)

optionalexpires_at

expires_at?: null | string

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

optionalguild

optionalguild_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

optionalinviter

inviter?: APIUser

optionalstage_instance

stage_instance?: APIInviteStageInstance

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

@deprecated

optionaltarget_application

target_application?: Partial<APIApplication>

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

optionaltarget_type

target_type?: InviteTargetType

optionaltarget_user

target_user?: APIUser

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