arguments property Null safety

Iterable arguments

The arguments parsed from the user input.

The arguments are ordered by the order in which they appear in the function delcaration. 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

Iterable<dynamic> get arguments;
void arguments=(Iterable value)

Set the arguments used by this context.

Should not be used unless you are implementing your own commannd handler.

Implementation

set arguments(Iterable<dynamic> value);