Skip to content

$handleError

$handleError will return information about an occurred error.

Usage

$handleError[option]

Parameters

FieldTypeDescriptionRequired
optionstringWhat to return the data of.
1. function - function name
2. command - command name
3. error - error that occurred
true

Example(s)

You require events: ["onFunctionError"] in your main file in order to use this function!

1
client.functionErrorCommand({
2
channel: "channelID (optional)",
3
code: `Something went wrong in your "$handleError[command]" command! The function "$handleError[function]" returned the error "$handleError[error]"!`
4
});