arguments property
The arguments parsed from the user input.
The arguments are ordered by the order in which they appear in the function declaration. Since
slash commands can specify optional arguments in any order, optional arguments declared before
the last provided argument will be set to their default value (or null
if unspecified).
You might also be interested in:
- ChatCommand.execute, the function that dictates the order in which arguments are provided;
- Converter, the means by which these arguments are parsed.
Implementation
// Arguments are only initialized during command execution, so we put them here to avoid them
// being accessed before that.
List<dynamic> get arguments;
Set the arguments used by this context.
Should not be used unless you are implementing your own command handler.
Implementation
set arguments(List<dynamic> value);