Functionalities
Functions
Data
Other
$guildCategories
Returns the collection of categories in a guild. If guild has too many roles, the command with this function in it will not execute.

FUNCTION USAGE

  • $guildCategories
  • $guildCategories[]
  • $guildCategories[guildID]
  • $guildCategories[guildID;option]
  • $guildCategories[guildID;option;separator]

Properties:

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

Options:

name - The names of the set of categories. id - The IDs of the set of categories.
Example 1: Returns all the names of the Categories in the current guild.
bot.Command({
name: "server",
code: `
$guildCategories
`
})
Example 2: Returns all the id's of the Categories in the defined guild. Separated with " | ".
bot.Command({
name: "server",
code: `
$guildCategories[$guildID[DB-Script Official Server];id; | ]
`
})
Copy link