$createChannel
$createChannel
will create a channel of a given type.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
guildID | number | ID of the guild of where the channel will be created in. | true |
name | string | The channel name of the newly created channel. | true |
type | string | The channel type. (listed below) | true |
returnID | boolean | Return the channel ID of the newly created channel. 1. true 2. false (default) | true |
parentID | number | The category ID. | false |
Channel Types
Channel Type | |
---|---|
Text Channel | Text |
Voice Channel | Voice |
Category | Category |
Stage Channel | Stage |
Private Thread | PrivateThread |
Public Thread | PublicThread |
Forum | Forum |
Announcement Thread | AnnouncementThread |
Announcement Channel | Announcement |
Home | GuildDirectory |
NSFW Channel | NSFW |
Direct Message | DM |
All Channel Types | all |
Example(s)
This will create a new text channel called “aoijs”: