getCommand method
- StringView view
inherited
Attempt to get a command from a string.
In cases where multiple commands with the same name might exist, this method will only return the command most likely to be queried from a string input. For example, CommandsPlugin.getCommand will only return ChatCommands and not MessageCommands or UserCommands.
You might also be interested in:
- walkCommands, for iterating over all commands in this group;
- children, for iterating over the children of this group.
Implementation
@override
ChatCommand? getCommand(StringView view) => getCommandHelper(view, _childrenMap);