Functionalities
Functions
Data
Other
$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.
bot.Command({
name: "server",
code: `
$guildChannels
`
})
Example 2: Returns all the mentions of the channels in the defined guild.
bot.Command({
name: "server",
code: `
$guildChannels[$guildID[DB-Script Official Server];mention]
`
})
Example 3: Returns all the id's of the channels in the defined guild. Separated with " | ".
bot.Command({
name: "server",
code: `
$guildChannels[$guildID[DB-Script Official Server];id; | ]
`
})
Copy link