class Invite
extends
Baseexport class Invite extends BaseRepresents an invitation to a guild channel.
channel : NonThreadGuildBasedChannel | PartialGroupDMChannel | null
The channel this invite is for
code : string
The code for this invite
readonlydeletable : boolean
Whether the invite is deletable by the client user
guild : InviteGuild | Guild | null
The guild the invite is for including welcome screen data if present
guildScheduledEvent : GuildScheduledEvent | null
The guild scheduled event data if there is a GuildScheduledEvent in the channel this invite is for
staticInvitesPattern : RegExp
A regular expression that matches Discord invite links. The code group property is present on the exec() result of this expression.
The maximum age of the invite, in seconds, 0 if never expires This is only available when the invite was fetched through fetch or created through create.
The maximum uses of this invite This is only available when the invite was fetched through fetch or created through create.
memberCount : number
The approximate total number of members of the guild this invite is for This is only available when the invite was fetched through fetchInvite.
presenceCount : number
The approximate number of online members of the guild this invite is for This is only available when the invite was fetched through fetchInvite.
deprecatedstageInstance : InviteStageInstance | null
true
The stage instance data if there is a public StageInstance in the stage channel this invite is for
targetApplication : IntegrationApplication | null
The embedded application to open for this voice channel embedded application invite
targetType : InviteTargetType | null
The target type
Whether or not this invite only grants temporary membership This is only available when the invite was fetched through fetch or created through create.
type : InviteType
The type of this invite
readonlyurl : string
The URL to the invite