Skip to content

$suppressErrors

$suppressErrors will suppress aoi.js function errors.

Usage

$suppressErrors[errorMsg?]

Parameters

FieldTypeDescriptionRequired
errorMsgstringError message to return.false

Example(s)

This will suppress all errors of your code and return the pre-defined error message instead:

1
client.command({
2
name: "suppressErrors",
3
code: `
4
$description
5
$suppressErrors[Something went wrong!]
6
` // Intentional invalid usage of $description
7
});