Functionalities
Other
Powered By GitBook
$guildChannels
Returns a collection of all the channels in a guild. If guild has too many channels, the command with this function in it will not execute.

FUNCTION USAGE

    $guildChannels
    $guildChannels[]
    $guildChannels[guildID]
    $guildChannels[guildID;option]
    $guildChannels[guildID;option;separator]

Properties:

[] - Leave brackets empty to return the channels of the current guild. Same as no brackets. guildID - Supplying a specific guild ID will get the channels of that server. option - Returns the channels with the specific option. Defaults to name. separator - Separates each channel with the defined separator. Defaults to , .

Options:

name - The names of the set of channels. mention - The set of channels formatted into their mention forms. id - The IDs of the set of channels.
Example 1: Returns all the names of the channels in the current guild.
1
bot.Command({
2
name: "server",
3
code: `
4
$guildChannels
5
`
6
})
Copied!
Example 2: Returns all the mentions of the channels in the defined guild.
1
bot.Command({
2
name: "server",
3
code: `
4
$guildChannels[$guildID[DB-Script Official Server];mention]
5
`
6
})
Copied!
Example 3: Returns all the id's of the channels in the defined guild. Separated with " | ".
1
bot.Command({
2
name: "server",
3
code: `
4
$guildChannels[$guildID[DB-Script Official Server];id; | ]
5
`
6
})
Copied!
Last modified 3mo ago
Copy link