Functionalities
Other
Powered By GitBook
$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.
1
bot.Command({
2
name: "server",
3
code: `
4
$guildCategories
5
`
6
})
Copied!
Example 2: Returns all the id's of the Categories in the defined guild. Separated with " | ".
1
bot.Command({
2
name: "server",
3
code: `
4
$guildCategories[$guildID[DB-Script Official Server];id; | ]
5
`
6
})
Copied!
Last modified 3mo ago
Copy link