$createChannel
Creates a channel. If a category ID is given, channel will be created under the given category. Valid types are `voice`, `text` and `category`.

FUNCTION USAGE

    $createChannel
    $createChannel[name;type;categoryID]
No brackets will create a default text channel #new-channel at the top of the channel list.

Properties:

name - Name of the channel being created type - Type of channel being created text, voice or category categoryID - If a categoryID is defined, it will create a channel under the given category. If the 3rd field is omitted or left blank, function will create a channel at the top of the channel list.

Example 1: Creating a text channel at the top of the channel list (Not in a category)

1
bot.Command({
2
name: "createchannel",
3
code: `
4
Text channel \`test\` was created!
5
$createChannel[test;text]
6
`
7
})
Copied!

Example 2: Creating a voice channel at the top of the channel list (Not in a category)

1
bot.Command({
2
name: "createvoice",
3
code: `
4
Voice channel \`Test\` was created!
5
$createChannel[Test;voice]
6
`
7
})
Copied!

Example 3: Creating a category. Categories are created at the bottom of the channel list

1
bot.Command({
2
name: "createcategory",
3
code: `
4
Category \`Main\` was created!
5
$createChannel[Main;category]
6
`
7
})
Copied!

Example 4: Creating a channel under a specific category

1
bot.Command({
2
name: "createvoice",
3
code: `
4
Voice channel \`test\` was created in a category!
5
$createChannel[Music;voice;2395863592045769]
6
`
7
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: