interface GatewayInviteCreateDispatchData

external
export interface GatewayInviteCreateDispatchData

https://discord.com/developers/docs/topics/gateway-events#invite-create

external
channel_id : Snowflake

The channel the invite is for

external
code : string

The unique invite codeSee https://discord.com/developers/docs/resources/invite#invite-object

external
created_at : number

The time at which the invite was created

optionalexternal
guild_id? : Snowflake

The guild of the invite

optionalexternal
inviter? : APIUser

The user that created the inviteSee https://discord.com/developers/docs/resources/user#user-object

external
max_age : number

How long the invite is valid for (in seconds)

external
max_uses : number

The maximum number of times the invite can be used

optionalexternal
target_application? : Partial<APIApplication>

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

optionalexternal
target_type? : InviteTargetType

The type of target for this voice channel inviteSee https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types

optionalexternal
target_user? : APIUser

The user whose stream to display for this voice channel stream inviteSee https://discord.com/developers/docs/resources/user#user-object

external
temporary : boolean

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

external
uses : 0

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