Skip to content

$categoryChannels

$categoryChannels will return all channels of a given category.

Usage

$categoryChannels[categoryID;option?;sep?]

Parameters

FieldTypeDescriptionRequired
categoryIDnumberThe ID of the category.true
option?stringThe option the bot will return the channels in.
1. names - returns channel names (default)
2. ids - returns channel IDs
false
sep?stringThe separator to separate the returned channels.false

Example(s)

This will return all channels of the category of the channel where you execute the command in:

1
client.command({
2
name: "categoryChannels",
3
code: `
4
$categoryChannels[$channelCategoryID;names;, ]
5
`
6
});