ChatCommand.slashOnly 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(),
- Map<
Locale, String> ? localizedNames, - Map<
Locale, String> ? localizedDescriptions}
Create a new ChatCommand with type CommandType.slashOnly.
Implementation
ChatCommand.slashOnly(
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(),
Map<Locale, String>? localizedNames,
Map<Locale, String>? localizedDescriptions,
}) : this._(
name,
description,
execute,
InteractionChatContext,
aliases: aliases,
type: CommandType.slashOnly,
children: children,
checks: checks,
singleChecks: singleChecks,
options: options,
localizedNames: localizedNames,
localizedDescriptions: localizedDescriptions,
);