Skip to content

$getGuildInvite

$getGuildInvite will create a guild invite.

Usage

$getGuildInvite[guildID?;...options]

Parameters

FieldTypeDescriptionRequired
guildID?numberThe guild ID of which the invite will be returned of.false
options?stringInvite option object.false

Invite Target Types

TYPE VALUE
STREAM 1
EMBEDDED_APPLICATION 2

Example(s)

This will create an invite of the channel where the command is executed in:

1
client.command({
2
name: "getGuildInvite",
3
code: `
4
$getGuildInvite[$guildID]
5
`
6
});

Advanced Example

Create Temporary Invites with limited uses:

1
client.command({
2
name: "getGuildInvite",
3
code: `
4
$getGuildInvite[$guildID;{
5
"temporary": true,
6
"maxAge": 650,
7
"maxUses": 25,
8
"unique": true
9
}]
10
`
11
});