ChatCommand.textOnly constructor Null safety
- String name,
- String description,
- Function execute,
- {List<
String> aliases = const [], - Iterable<
IChatCommandComponent> children = const [], - Iterable<
AbstractCheck> checks = const [], - Iterable<
AbstractCheck> singleChecks = const [], - CommandOptions options = const CommandOptions()}
Create a new ChatCommand with type CommandType.textOnly.
Implementation
ChatCommand.textOnly(
String name,
String description,
Function execute, {
List<String> aliases = const [],
Iterable<IChatCommandComponent> children = const [],
Iterable<AbstractCheck> checks = const [],
Iterable<AbstractCheck> singleChecks = const [],
CommandOptions options = const CommandOptions(),
}) : this._(
name,
description,
execute,
MessageChatContext,
aliases: aliases,
type: CommandType.textOnly,
children: children,
checks: checks,
singleChecks: singleChecks,
options: options,
);