$createChannelInvite
$createChannelInvite will create a channel invite.
Usage
$createChannelInvite[channelID?;...options]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| channelID? | number | The channel ID of which the invite will be created. | false |
| options? | object | Invite options. | 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: "createChannelInvite",3 code: `4 $createChannelInvite[$channelID]5 `6});Advanced Example(s)
Create Temporary Invites with limited uses:
1client.command({2 name: "createChannelInvite",3 code: `4 $createChannelInvite[$channelID;{5 "temporary": true,6 "maxAge": 650,7 "maxUses": 25,8 "unique": true9 }]10 `11});Create Activity Invites:
1client.command({2 name: "createChannelInvite",3 code: `4 $createChannelInvite[voiceID;{5 "targetApplication": "application ID",6 "targetType": 27 }]8 `9});