class GroupDMInvite

export class GroupDMInvite<WithCounts extends boolean = boolean> extends BaseInvite<WithCounts>

A channel invite leading to a group direct message channel.

Type Parameters

optional
WithCounts? extends boolean = boolean

approximateMemberCount : WithCounts extends true ? number : null

The approximate total number of members.

Inherited from: BaseInvite

The channel this invite is for.

readonly
channelId : Snowflake | null

The id of the channel this invite is for.

Inherited from: BaseInvite

readonly
client : Client<true>

The client that instantiated this

Inherited from: Base

readonly
code : string

The invite code.

Inherited from: BaseInvite

readonly
createdAt : Date | null

The creation date of this invite.

Inherited from: BaseInvite

createdTimestamp : number | null

The timestamp this invite was created at.

Inherited from: BaseInvite

readonly
expiresAt : Date | null

The expiry date of this invite.

Inherited from: BaseInvite

readonly
expiresTimestamp : number | null

The timestamp this invite expires at.

Inherited from: BaseInvite

readonly
inviter : User | null

The user that created this invite.

Inherited from: BaseInvite

readonly
inviterId : Snowflake | null

The id of the user that created this invite.

Inherited from: BaseInvite

static
InvitesPattern : RegExp

A regular expression that matches Discord invite links. The code group property is present on the exec() result of this expression.

Inherited from: BaseInvite

maxAge : number | null

The maximum age of the invite in seconds. 0 for no expiry.

Inherited from: BaseInvite

readonly
type : InviteType.GroupDM

The type of this invite.

readonly
url : string

The URL to the invite.

Inherited from: BaseInvite

toJSON() : unknown

Inherited from: BaseInvite

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}`);

Inherited from: BaseInvite

valueOf() : string

Inherited from: Base