MessageCommand constructor
- String name,
- dynamic execute( ),
- {Iterable<
AbstractCheck> checks = const [], - CommandOptions options = const CommandOptions(),
- 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);
}
}