Optional
approximateThe approximate number of total members in the guild this invite leads to.
Optional
approximateThe approximate number of online members in the guild this invite leads to.
The ID of the channel this invite leads to.
The code of this invite.
When this invite was created.
Optional
expiresThe date at which this invite expires.
This invite's flags.
The guild this invite leads to or null
if this invite leads to a Group DM.
The ID of the guild this invite leads to or null
if this invite leads to a Group DM.
Optional
guildThe scheduled event associated with this invite.
Optional
inviterThe user that created this invite.
The time after which this invite expires.
The maximum number of times this invite can be used,
Optional
stageThe stage instance in the invite this channel is for (deprecated).
Optional
targetThe embedded application this invite will open.
Optional
targetThe target type of this invite.
Optional
targetThe user whose stream to display for this voice channel stream invite.
If this invite only grants temporary membership.
The number of times this invite has been used.
The channel this invite leads to. If the channel is not cached, this will be a partial with only id
, name, and
type`.
Whether this invite belongs to a cached channel. The only difference on using this method over a simple if statement is to easily update all the invite properties typing definitions based on the channel it belongs to.
Represents an invite.