Functionalities
Other
Powered By GitBook
$customCommandList
Returns the list of custom commands in the database, if any.

FUNCTION USAGE

    $customCommandList[format;amount]
    $customCommandList[format]
    $customCommandList[amount]

Properties:

format - The command list format and how it will show. Can be left blank to return the names. amount - The amount of commands you want to show. Leave blank for a default 10

Example 1: All the custom command names in the database.

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

Example 2: First 5 custom commands

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

Example 3: All the custom command names and their codes.

1
bot.Command({
2
name: "test",
3
code: `
4
$customCommandList[
5
{name}
6
\`\`\`
7
{code}
8
\`\`\`
9
]
10
`
11
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: