MessageCommand constructor

MessageCommand(
  1. String name,
  2. dynamic execute(
    1. MessageContext
    ),
  3. {Iterable<AbstractCheck> checks = const [],
  4. CommandOptions options = const CommandOptions(),
  5. Map<Locale, String>? localizedNames}
)

Create a new MessageCommand.

Implementation

MessageCommand(
  this.name,
  this.execute, {
  Iterable<AbstractCheck> checks = const [],
  this.options = const CommandOptions(),
  this.localizedNames,
}) {
  for (final check in checks) {
    this.check(check);
  }
}