$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)

bot.Command({
name: "createchannel",
code: `
Text channel \`test\` was created!
$createChannel[test;text]
`
})

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

bot.Command({
name: "createvoice",
code: `
Voice channel \`Test\` was created!
$createChannel[Test;voice]
`
})

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

bot.Command({
name: "createcategory",
code: `
Category \`Main\` was created!
$createChannel[Main;category]
`
})

Example 4: Creating a channel under a specific category

bot.Command({
name: "createvoice",
code: `
Voice channel \`test\` was created in a category!
$createChannel[Music;voice;2395863592045769]
`
})
Copy link