Skip to content

$createChannel

$createChannel will create a channel of a given type.

Usage

$createChannel[guildID;name;type;returnID;parentID]

Parameters

FieldTypeDescriptionRequired
guildIDnumberID of the guild of where the channel will be created in.true
namestringThe channel name of the newly created channel.true
typestringThe channel type. (listed below)true
returnIDbooleanReturn the channel ID of the newly created channel.
1. true
2. false (default)
true
parentIDnumberThe 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”:

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