$customCommandExists
Returns `true` if the custom command exists in the database for the guild. Otherwise, the function will return `false`.

FUNCTION USAGE

    $customCommandExists[name]
    $customCommandExists[name;guildID]

Properties:

name - The command to check for existence. guildID - The guild ID of the guild where the custom command belongs to. Defaults to the current guild if left blank.

Example 1:

1
bot.Command({
2
name: "exists",
3
code: `
4
$onlyIf[$customCommandExists[$message[1]]==true;The custom command does not exist for this guild]
5
`
6
})
Copied!

Example 2:

1
bot.Command({
2
name: "exists",
3
code: `
4
$onlyIf[$customCommandExists[$message[1];$message[2]]==true;The custom command does not exist for the guild: $guildName[$message[2]]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: