Functionalities
Other
Powered By GitBook
$sortGuildNames
Returns the amount of guilds your bot is in sorted by their names. If field is left empty, it will return 10 by default.

FUNCTION USAGE

    $sortGuildNames
    $sortGuildNames[]
    $sortGuildNames[number]
    $sortGuildNames[number;separator]

Properties:

[] - Returns up to 10 guild names your bot is in. Same as no brackets. number - Returns that specific number of guild names. separator - What to separate the names with. Default is a name on a new line.
    Bot must be in the server to read the data!

Example 1: Returns up to 10 guild names your bot is in

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

Example 2: Returns up to 17 guild names your bot is in.

1
bot.Command({
2
name: "guilds",
3
code: `
4
$guildNames[17]
5
`
6
})
Copied!

Example 3: Returns up to 17 guild names your bot is in with a custom separator.

1
bot.Command({
2
name: "guilds",
3
code: `
4
$guildNames[17; -- ]
5
`
6
})
Copied!
Last modified 3mo ago
Copy link
Contents
Properties: