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

FUNCTION USAGE

    $sortGuildIDs
    $sortGuildIDs[]
    $sortGuildIDs[number]
    $sortGuildIDs[number;separator]

Properties:

[] - Leave brackets empty to return up to 10 guilds your bot is in. Same as no brackets. number - Returns that specific number of guild IDs. separator - What to separate the IDs with. Default is an ID on a new line.
    Bot must be in the guild to read the data!

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

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

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

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