$categoryChannels
$categoryChannels
will return all channels of a given category.
Usage
$categoryChannels[categoryID;option?;sep?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
categoryID | number | The ID of the category. | true |
option? | string | The option the bot will return the channels in. 1. names - returns channel names (default) 2. ids - returns channel IDs | false |
sep? | string | The 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:
1client.command({2 name: "categoryChannels",3 code: `4 $categoryChannels[$channelCategoryID;names;, ]5 `6});