Functionalities
Other
$channelCount
Returns the total amount of specific types of channels that exist in the current or specific guild.
Compaction is a new addition to the function since update 2.4.1

FUNCTION USAGE

  • $channelCount
  • $channelCount[]
  • $channelCount[guildID]
  • $channelCount[guildID;option]

Properties:

[] - Returns the total channel count in the current server. Same as no brackets. guildID - Returns the total channel count in the specific server. option - Returns the total channel count of a specific type of channel in a guild.

Options:

  1. 1.
    text
  2. 2.
    voice
  3. 3.
    news
  4. 4.
    category
  5. 5.
    total
Bot must be in the server to read the data!
1
$channelCount - current guild total data
2
3
$channelCount[] - current guild total data
4
5
$channelCount[;] - current guild total data
6
7
$channelCount[guildID;] - current guild total data
8
9
$channelCount[guildID] - current guild total data
10
11
$channelCount[;option] - current guild option data
12
13
$channelCount[guildID;option] - optional data
Copied!

Example 1: Returns the total channel count in the current server.

1
bot.Command({
2
name: "channels",
3
code: `
4
$channelCount
5
`
6
})
Copied!

Example 2: Returns the total channel count in the specific server.

1
bot.Command({
2
name: "channels",
3
code: `
4
$channelCount[65346745684565727;]
5
`
6
})
Copied!

Example 3: Returns the total text channel count in the specific server.

1
bot.Command({
2
name: "channels",
3
code: `
4
$channelCount[65346745684565727;text]
5
`
6
})
Copied!
Last modified 8mo ago
Copy link