class BaseInvite
extends
Baseexport class BaseInvite<WithCounts extends boolean = boolean> extends BaseThe base invite class.
Constructors
Constructs a new instance of the BaseInvite class
approximateMemberCount : WithCounts extends true ? number : null
The approximate total number of members.
readonlycode : string
The invite code.
staticInvitesPattern : RegExp
A regular expression that matches Discord invite links. The code group property is present on the exec() result of this expression.
readonlytype : InviteType
The type of this invite.
readonlyurl : string
The URL to the invite.
toString() : string
When concatenated with a string, this automatically concatenates the invite's URL instead of the object.
Examples:
// Logs: Invite: https://discord.gg/djs
console.log(`Invite: ${invite}`);