Skip to main content
Version: 0.37.44

GatewayInviteCreateDispatchData

@deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

Index

Properties

channel_id

channel_id: string

The channel the invite is for

code

code: string

created_at

created_at: number

The time at which the invite was created

optionalguild_id

guild_id?: string

The guild of the invite

optionalinviter

inviter?: APIUser

max_age

max_age: number

How long the invite is valid for (in seconds)

max_uses

max_uses: number

The maximum number of times the invite can be used

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

temporary

temporary: boolean

Whether or not the invite is temporary (invited users will be kicked on disconnect unless they’re assigned a role)

uses

uses: 0

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