export interface APIInviteSee also: https://discord.com/developers/docs/resources/invite#invite-object
optionalexternalapproximate_member_count? : number
Approximate count of total members, returned from the GET /invites/<code> endpoint when with_counts is true
optionalexternalapproximate_presence_count? : number
Approximate count of online members, returned from the GET /invites/<code> endpoint when with_counts is true
externalchannel : APIInviteChannel | null
The channel this invite is for
See also: https://discord.com/developers/docs/resources/channel#channel-object
externalcode : string
The invite code (unique ID)
optionalexternalflags? : InviteFlags
The flags of the invite
optionalexternalguild_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
optionalexternalguild? : APIInviteGuild
The guild this invite is for
See also: https://discord.com/developers/docs/resources/guild#guild-object
optionalexternalinviter? : APIUser
The user who created the invite
See also: https://discord.com/developers/docs/resources/user#user-object
deprecatedoptionalexternalstage_instance? : never
This has been removed from the documentation. discord-api-docs#7779
The stage instance data if there is a public stage instance in the stage channel this invite is for
optionalexternaltarget_application? : Partial<APIApplication>
The embedded application to open for this voice channel embedded application invite
See also: https://discord.com/developers/docs/resources/application#application-object
optionalexternaltarget_type? : InviteTargetType
The type of target for this voice channel invite
See also: https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types
optionalexternaltarget_user? : APIUser
The user whose stream to display for this voice channel stream invite
See also: https://discord.com/developers/docs/resources/user#user-object
externaltype : InviteType
The invite type