CommandExecutionError typedef Null safety

CommandExecutionError = FutureOr<void> Function(ICommandContext context, dynamic exception)

Callback called when command executions returns with Exception or Error (exception variable could be either).

Implementation

typedef CommandExecutionError = FutureOr<void> Function(ICommandContext context, dynamic exception);