$suppressErrors
$suppressErrors will suppress aoi.js function errors.
Usage
$suppressErrors[errorMsg?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| errorMsg | string | Error message to return. | false |
Example(s)
This will suppress all errors of your code and return the pre-defined error message instead:
1client.command({2 name: "suppressErrors",3 code: `4 $description5 $suppressErrors[Something went wrong!]6 ` // Intentional invalid usage of $description7});