$getGuildInvite
$getGuildInvite
will create a guild invite.
Usage
$getGuildInvite[guildID?;...options]
Parameters
Field | Type | Description | Required |
---|---|---|---|
guildID? | number | The guild ID of which the invite will be returned of. | false |
options? | string | Invite 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:
1client.command({2 name: "getGuildInvite",3 code: `4 $getGuildInvite[$guildID]5 `6});
Advanced Example
Create Temporary Invites with limited uses:
1client.command({2 name: "getGuildInvite",3 code: `4 $getGuildInvite[$guildID;{5 "temporary": true,6 "maxAge": 650,7 "maxUses": 25,8 "unique": true9 }]10 `11});