APIInvite

export interface APIInvite
export interface APIInvite
https://discord.com/developers/docs/resources/invite#invite-object
approximate_member_count?:number
Approximate count of total members, returned from the GET /invites/<code> endpoint when with_counts is true
approximate_presence_count?:number
Approximate count of online members, returned from the GET /invites/<code> endpoint when with_counts is true
The channel this invite is forSee https://discord.com/developers/docs/resources/channel#channel-object
code:string
The invite code (unique ID)
expires_at?:string | null
The expiration date of this invite, returned from the GET /invites/<code> endpoint when with_expiration is true
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
The guild this invite is forSee https://discord.com/developers/docs/resources/guild#guild-object
inviter?:APIUser
The user who created the inviteSee https://discord.com/developers/docs/resources/user#user-object
Deprecated
stage_instance?:APIInviteStageInstance
Deprecated
The stage instance data if there is a public stage instance in the stage channel this invite is for
target_application?:Partial<APIApplication>
The embedded application to open for this voice channel embedded application inviteSee https://discord.com/developers/docs/resources/application#application-object
target_type?:InviteTargetType
The type of target for this voice channel inviteSee https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types
target_user?:APIUser
The user whose stream to display for this voice channel stream inviteSee https://discord.com/developers/docs/resources/user#user-object
The invite type