RunCommandOptions
RunCommandOptions
Options for running a command in CommandKit.
Signature
interface RunCommandOptions {
handler?: string;
throwOnError?: boolean;
}
handler
property
string
The handler to use for executing the command. If not provided, the execution mode will determine the handler. For example, 'chatInputCommand', 'message', etc.
throwOnError
property
boolean
default:
false
Whether to throw an error if the command execution fails. If true, any error during execution will be thrown. Default is false, which means errors will be logged but not thrown.