CommandExecutionError typedef Null safety

FutureOr<void> CommandExecutionError(
  1. CommandContext context,
  2. dynamic exception
)

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

Implementation

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