class GuildInvite
extends
BaseInvite<WithCounts>export class GuildInvite<WithCounts extends boolean = boolean> extends BaseInvite<WithCounts>
A channel invite leading to a guild.
WithCounts extends true ? number : null approximateMemberCount :
The approximate total number of members.
Inherited from: BaseInvite
WithCounts extends true ? number : null approximatePresenceCount :
The approximate number of online members of the guild. This is only available when the invite was fetched through fetchInvite.
NonThreadGuildBasedChannel | null channel :
The channel this invite is for.
The id of the channel this invite is for.
Inherited from: BaseInvite
The timestamp this invite was created at.
Inherited from: BaseInvite
readonlyboolean deletable :
Whether the invite is deletable by the client user.
The timestamp this invite expires at.
Inherited from: BaseInvite
Guild | InviteGuild | null guild :
The guild the invite is for. May include welcome screen data.
readonlySnowflake guildId :
The id of the guild this invite is for.
GuildScheduledEvent | null guildScheduledEvent :
The guild scheduled event data if there is a GuildScheduledEvent in the channel.
The id of the user that created this invite.
Inherited from: BaseInvite
staticRegExp InvitesPattern :
A regular expression that matches Discord invite links. The code
group property is present on the exec()
result of this expression.
Inherited from: BaseInvite
The maximum age of the invite in seconds. 0
for no expiry.
Inherited from: BaseInvite
The maximum uses of this invite. This is only available when the invite was fetched through fetch or created through create.
IntegrationApplication | null targetApplication :
The embedded application to open for this voice channel embedded application invite.
InviteTargetType | null targetType :
The target type.
Whether this invite grants temporary membership. This is only available when the invite was fetched through fetch or created through create.
readonlyInviteType.Guild type :
The type of this invite.
toJSONunknown () :
Inherited from: BaseInvite
toStringstring () :
When concatenated with a string, this automatically concatenates the invite's URL instead of the object.
// Logs: Invite: https://discord.gg/djs
console.log(`Invite: ${invite}`);
Inherited from: BaseInvite